Skip to content

Commit 8ed48e1

Browse files
committed
Change enforced by golangci-lint - fieldalignment
1 parent 3980b99 commit 8ed48e1

File tree

5 files changed

+14
-14
lines changed

5 files changed

+14
-14
lines changed

docs/reference/api.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -87,11 +87,11 @@ _Appears in:_
8787

8888
| Field | Description | Default | Validation |
8989
| --- | --- | --- | --- |
90-
| `serviceType` _[ServiceType](https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.28/#servicetype-v1-core)_ | ServiceType is Kubernetes service type of the head service. it will be used by the workers to connect to the head pod | | |
90+
| `template` _[PodTemplateSpec](https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.28/#podtemplatespec-v1-core)_ | Template is the exact pod template used in K8s depoyments, statefulsets, etc. | | |
9191
| `headService` _[Service](https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.28/#service-v1-core)_ | HeadService is the Kubernetes service of the head pod. | | |
9292
| `enableIngress` _boolean_ | EnableIngress indicates whether operator should create ingress object for head service or not. | | |
9393
| `rayStartParams` _object (keys:string, values:string)_ | RayStartParams are the params of the start command: node-manager-port, object-store-memory, ... | | |
94-
| `template` _[PodTemplateSpec](https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.28/#podtemplatespec-v1-core)_ | Template is the exact pod template used in K8s depoyments, statefulsets, etc. | | |
94+
| `serviceType` _[ServiceType](https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.28/#servicetype-v1-core)_ | ServiceType is Kubernetes service type of the head service. it will be used by the workers to connect to the head pod | | |
9595

9696

9797

@@ -424,11 +424,11 @@ _Appears in:_
424424

425425
| Field | Description | Default | Validation |
426426
| --- | --- | --- | --- |
427-
| `serviceType` _[ServiceType](https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.28/#servicetype-v1-core)_ | ServiceType is Kubernetes service type of the head service. it will be used by the workers to connect to the head pod | | |
427+
| `template` _[PodTemplateSpec](https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.28/#podtemplatespec-v1-core)_ | Template is the exact pod template used in K8s depoyments, statefulsets, etc. | | |
428428
| `headService` _[Service](https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.28/#service-v1-core)_ | HeadService is the Kubernetes service of the head pod. | | |
429429
| `enableIngress` _boolean_ | EnableIngress indicates whether operator should create ingress object for head service or not. | | |
430430
| `rayStartParams` _object (keys:string, values:string)_ | RayStartParams are the params of the start command: node-manager-port, object-store-memory, ... | | |
431-
| `template` _[PodTemplateSpec](https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.28/#podtemplatespec-v1-core)_ | Template is the exact pod template used in K8s depoyments, statefulsets, etc. | | |
431+
| `serviceType` _[ServiceType](https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.28/#servicetype-v1-core)_ | ServiceType is Kubernetes service type of the head service. it will be used by the workers to connect to the head pod | | |
432432

433433

434434
#### RayCluster

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -54,16 +54,16 @@ type RedisCredential struct {
5454

5555
// HeadGroupSpec are the spec for the head pod
5656
type HeadGroupSpec struct {
57-
// ServiceType is Kubernetes service type of the head service. it will be used by the workers to connect to the head pod
58-
ServiceType corev1.ServiceType `json:"serviceType,omitempty"`
57+
// Template is the exact pod template used in K8s depoyments, statefulsets, etc.
58+
Template corev1.PodTemplateSpec `json:"template"`
5959
// HeadService is the Kubernetes service of the head pod.
6060
HeadService *corev1.Service `json:"headService,omitempty"`
6161
// EnableIngress indicates whether operator should create ingress object for head service or not.
6262
EnableIngress *bool `json:"enableIngress,omitempty"`
6363
// RayStartParams are the params of the start command: node-manager-port, object-store-memory, ...
6464
RayStartParams map[string]string `json:"rayStartParams"`
65-
// Template is the exact pod template used in K8s depoyments, statefulsets, etc.
66-
Template corev1.PodTemplateSpec `json:"template"`
65+
// ServiceType is Kubernetes service type of the head service. it will be used by the workers to connect to the head pod
66+
ServiceType corev1.ServiceType `json:"serviceType,omitempty"`
6767
}
6868

6969
// WorkerGroupSpec are the specs for the worker pods

ray-operator/apis/ray/v1/zz_generated.deepcopy.go

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,16 +29,16 @@ type RayClusterSpec struct {
2929

3030
// HeadGroupSpec are the spec for the head pod
3131
type HeadGroupSpec struct {
32-
// ServiceType is Kubernetes service type of the head service. it will be used by the workers to connect to the head pod
33-
ServiceType corev1.ServiceType `json:"serviceType,omitempty"`
32+
// Template is the exact pod template used in K8s depoyments, statefulsets, etc.
33+
Template corev1.PodTemplateSpec `json:"template"`
3434
// HeadService is the Kubernetes service of the head pod.
3535
HeadService *corev1.Service `json:"headService,omitempty"`
3636
// EnableIngress indicates whether operator should create ingress object for head service or not.
3737
EnableIngress *bool `json:"enableIngress,omitempty"`
3838
// RayStartParams are the params of the start command: node-manager-port, object-store-memory, ...
3939
RayStartParams map[string]string `json:"rayStartParams"`
40-
// Template is the exact pod template used in K8s depoyments, statefulsets, etc.
41-
Template corev1.PodTemplateSpec `json:"template"`
40+
// ServiceType is Kubernetes service type of the head service. it will be used by the workers to connect to the head pod
41+
ServiceType corev1.ServiceType `json:"serviceType,omitempty"`
4242
}
4343

4444
// WorkerGroupSpec are the specs for the worker pods

ray-operator/apis/ray/v1alpha1/zz_generated.deepcopy.go

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)