Skip to content

Commit 364b975

Browse files
committed
[Chore] update comment for headGroupSpec and entrypoint
Signed-off-by: Abirdcfly <[email protected]>
1 parent 522718e commit 364b975

File tree

5 files changed

+8
-14
lines changed

5 files changed

+8
-14
lines changed

docs/reference/api.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ _Appears in:_
150150
| `headServiceAnnotations` _object (keys:string, values:string)_ | | | |
151151
| `enableInTreeAutoscaling` _boolean_ | EnableInTreeAutoscaling indicates whether operator should create in tree autoscaling configs | | |
152152
| `gcsFaultToleranceOptions` _[GcsFaultToleranceOptions](#gcsfaulttoleranceoptions)_ | GcsFaultToleranceOptions for enabling GCS FT | | |
153-
| `headGroupSpec` _[HeadGroupSpec](#headgroupspec)_ | INSERT ADDITIONAL SPEC FIELDS - desired state of cluster<br />Important: Run "make" to regenerate code after modifying this file<br />HeadGroupSpecs are the spec for the head pod | | |
153+
| `headGroupSpec` _[HeadGroupSpec](#headgroupspec)_ | HeadGroupSpec is the spec for the head pod | | |
154154
| `rayVersion` _string_ | RayVersion is used to determine the command for the Kubernetes Job managed by RayJob | | |
155155
| `workerGroupSpecs` _[WorkerGroupSpec](#workergroupspec) array_ | WorkerGroupSpecs are the specs for the worker pods | | |
156156

@@ -195,7 +195,7 @@ _Appears in:_
195195
| `submitterConfig` _[SubmitterConfig](#submitterconfig)_ | Configurations of submitter k8s job. | | |
196196
| `managedBy` _string_ | ManagedBy is an optional configuration for the controller or entity that manages a RayJob.<br />The value must be either 'ray.io/kuberay-operator' or 'kueue.x-k8s.io/multikueue'.<br />The kuberay-operator reconciles a RayJob which doesn't have this field at all or<br />the field value is the reserved string 'ray.io/kuberay-operator',<br />but delegates reconciling the RayJob with 'kueue.x-k8s.io/multikueue' to the Kueue.<br />The field is immutable. | | |
197197
| `deletionPolicy` _[DeletionPolicy](#deletionpolicy)_ | DeletionPolicy indicates what resources of the RayJob are deleted upon job completion.<br />Valid values are 'DeleteCluster', 'DeleteWorkers', 'DeleteSelf' or 'DeleteNone'.<br />If unset, deletion policy is based on 'spec.shutdownAfterJobFinishes'.<br />This field requires the RayJobDeletionPolicy feature gate to be enabled. | | |
198-
| `entrypoint` _string_ | INSERT ADDITIONAL SPEC FIELDS - desired state of cluster<br />Important: Run "make" to regenerate code after modifying this file | | |
198+
| `entrypoint` _string_ | Entrypoint represents the command to start execution. | | |
199199
| `runtimeEnvYAML` _string_ | RuntimeEnvYAML represents the runtime environment configuration<br />provided as a multi-line YAML string. | | |
200200
| `jobId` _string_ | If jobId is not set, a new jobId will be auto-generated. | | |
201201
| `submissionMode` _[JobSubmissionMode](#jobsubmissionmode)_ | SubmissionMode specifies how RayJob submits the Ray job to the RayCluster.<br />In "K8sJobMode", the KubeRay operator creates a submitter Kubernetes Job to submit the Ray job.<br />In "HTTPMode", the KubeRay operator sends a request to the RayCluster to create a Ray job.<br />In "InteractiveMode", the KubeRay operator waits for a user to submit a job to the Ray cluster. | K8sJobMode | |
@@ -464,7 +464,7 @@ _Appears in:_
464464
| `autoscalerOptions` _[AutoscalerOptions](#autoscaleroptions)_ | AutoscalerOptions specifies optional configuration for the Ray autoscaler. | | |
465465
| `suspend` _boolean_ | Suspend indicates whether a RayCluster should be suspended.<br />A suspended RayCluster will have head pods and worker pods deleted. | | |
466466
| `headServiceAnnotations` _object (keys:string, values:string)_ | | | |
467-
| `headGroupSpec` _[HeadGroupSpec](#headgroupspec)_ | INSERT ADDITIONAL SPEC FIELDS - desired state of cluster<br />Important: Run "make" to regenerate code after modifying this file<br />HeadGroupSpecs are the spec for the head pod | | |
467+
| `headGroupSpec` _[HeadGroupSpec](#headgroupspec)_ | HeadGroupSpec is the spec for the head pod | | |
468468
| `rayVersion` _string_ | RayVersion is used to determine the command for the Kubernetes Job managed by RayJob | | |
469469
| `workerGroupSpecs` _[WorkerGroupSpec](#workergroupspec) array_ | WorkerGroupSpecs are the specs for the worker pods | | |
470470

@@ -504,7 +504,7 @@ _Appears in:_
504504
| `metadata` _object (keys:string, values:string)_ | Refer to Kubernetes API documentation for fields of `metadata`. | | |
505505
| `rayClusterSpec` _[RayClusterSpec](#rayclusterspec)_ | RayClusterSpec is the cluster template to run the job | | |
506506
| `clusterSelector` _object (keys:string, values:string)_ | ClusterSelector is used to select running rayclusters by labels | | |
507-
| `entrypoint` _string_ | INSERT ADDITIONAL SPEC FIELDS - desired state of cluster<br />Important: Run "make" to regenerate code after modifying this file | | |
507+
| `entrypoint` _string_ | Entrypoint represents the command to start execution. | | |
508508
| `runtimeEnvYAML` _string_ | RuntimeEnvYAML represents the runtime environment configuration<br />provided as a multi-line YAML string. | | |
509509
| `jobId` _string_ | If jobId is not set, a new jobId will be auto-generated. | | |
510510
| `entrypointResources` _string_ | EntrypointResources specifies the custom resources and quantities to reserve for the<br />entrypoint command. | | |

ray-operator/apis/ray/v1/raycluster_types.go

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,7 @@ type RayClusterSpec struct {
3030
EnableInTreeAutoscaling *bool `json:"enableInTreeAutoscaling,omitempty"`
3131
// GcsFaultToleranceOptions for enabling GCS FT
3232
GcsFaultToleranceOptions *GcsFaultToleranceOptions `json:"gcsFaultToleranceOptions,omitempty"`
33-
// INSERT ADDITIONAL SPEC FIELDS - desired state of cluster
34-
// Important: Run "make" to regenerate code after modifying this file
35-
// HeadGroupSpecs are the spec for the head pod
33+
// HeadGroupSpec is the spec for the head pod
3634
HeadGroupSpec HeadGroupSpec `json:"headGroupSpec"`
3735
// RayVersion is used to determine the command for the Kubernetes Job managed by RayJob
3836
RayVersion string `json:"rayVersion,omitempty"`

ray-operator/apis/ray/v1/rayjob_types.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -110,8 +110,7 @@ type RayJobSpec struct {
110110
// This field requires the RayJobDeletionPolicy feature gate to be enabled.
111111
// +kubebuilder:validation:XValidation:rule="self in ['DeleteCluster', 'DeleteWorkers', 'DeleteSelf', 'DeleteNone']",message="the deletionPolicy field value must be either 'DeleteCluster', 'DeleteWorkers', 'DeleteSelf', or 'DeleteNone'"
112112
DeletionPolicy *DeletionPolicy `json:"deletionPolicy,omitempty"`
113-
// INSERT ADDITIONAL SPEC FIELDS - desired state of cluster
114-
// Important: Run "make" to regenerate code after modifying this file
113+
// Entrypoint represents the command to start execution.
115114
Entrypoint string `json:"entrypoint,omitempty"`
116115
// RuntimeEnvYAML represents the runtime environment configuration
117116
// provided as a multi-line YAML string.

ray-operator/apis/ray/v1alpha1/raycluster_types.go

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,7 @@ type RayClusterSpec struct {
1919
// A suspended RayCluster will have head pods and worker pods deleted.
2020
Suspend *bool `json:"suspend,omitempty"`
2121
HeadServiceAnnotations map[string]string `json:"headServiceAnnotations,omitempty"`
22-
// INSERT ADDITIONAL SPEC FIELDS - desired state of cluster
23-
// Important: Run "make" to regenerate code after modifying this file
24-
// HeadGroupSpecs are the spec for the head pod
22+
// HeadGroupSpec is the spec for the head pod
2523
HeadGroupSpec HeadGroupSpec `json:"headGroupSpec"`
2624
// RayVersion is used to determine the command for the Kubernetes Job managed by RayJob
2725
RayVersion string `json:"rayVersion,omitempty"`

ray-operator/apis/ray/v1alpha1/rayjob_types.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,7 @@ type RayJobSpec struct {
5151
RayClusterSpec *RayClusterSpec `json:"rayClusterSpec,omitempty"`
5252
// ClusterSelector is used to select running rayclusters by labels
5353
ClusterSelector map[string]string `json:"clusterSelector,omitempty"`
54-
// INSERT ADDITIONAL SPEC FIELDS - desired state of cluster
55-
// Important: Run "make" to regenerate code after modifying this file
54+
// Entrypoint represents the command to start execution.
5655
Entrypoint string `json:"entrypoint"`
5756
// RuntimeEnvYAML represents the runtime environment configuration
5857
// provided as a multi-line YAML string.

0 commit comments

Comments
 (0)