Skip to content

Commit fb801c8

Browse files
GrigoryPervakovscanhex12
authored andcommitted
fix(docs): .containerTemplate.resources docstring (#135)
1 parent 5eed1cb commit fb801c8

6 files changed

Lines changed: 8 additions & 15 deletions

File tree

api/v1alpha1/common.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -248,8 +248,7 @@ type ContainerTemplateSpec struct {
248248
// +kubebuilder:validation:Enum="Always";"Never";"IfNotPresent"
249249
ImagePullPolicy corev1.PullPolicy `json:"imagePullPolicy,omitempty"`
250250

251-
// Resources is the resource requirements for the container.
252-
// This field cannot be updated once the cluster is created.
251+
// Resources is the resource requirements for the server container.
253252
// +optional
254253
Resources corev1.ResourceRequirements `json:"resources,omitempty"`
255254

config/crd/bases/clickhouse.com_clickhouseclusters.yaml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -264,9 +264,8 @@ spec:
264264
- IfNotPresent
265265
type: string
266266
resources:
267-
description: |-
268-
Resources is the resource requirements for the container.
269-
This field cannot be updated once the cluster is created.
267+
description: Resources is the resource requirements for the server
268+
container.
270269
properties:
271270
claims:
272271
description: |-

config/crd/bases/clickhouse.com_keeperclusters.yaml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -263,9 +263,8 @@ spec:
263263
- IfNotPresent
264264
type: string
265265
resources:
266-
description: |-
267-
Resources is the resource requirements for the container.
268-
This field cannot be updated once the cluster is created.
266+
description: Resources is the resource requirements for the server
267+
container.
269268
properties:
270269
claims:
271270
description: |-

dist/chart/templates/crd/clickhouseclusters.clickhouse.com.yaml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -251,9 +251,7 @@ spec:
251251
- IfNotPresent
252252
type: string
253253
resources:
254-
description: |-
255-
Resources is the resource requirements for the container.
256-
This field cannot be updated once the cluster is created.
254+
description: Resources is the resource requirements for the server container.
257255
properties:
258256
claims:
259257
description: |-

dist/chart/templates/crd/keeperclusters.clickhouse.com.yaml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -251,9 +251,7 @@ spec:
251251
- IfNotPresent
252252
type: string
253253
resources:
254-
description: |-
255-
Resources is the resource requirements for the container.
256-
This field cannot be updated once the cluster is created.
254+
description: Resources is the resource requirements for the server container.
257255
properties:
258256
claims:
259257
description: |-

docs/api_reference.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ ContainerTemplateSpec describes the container configuration overrides for the cl
152152
|-------|------|-------------|----------|---------|
153153
| `image` | [ContainerImage](#containerimage) | Image is the container image to be deployed. | true | |
154154
| `imagePullPolicy` | [PullPolicy](https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.28/#pullpolicy-v1-core) | ImagePullPolicy for the image, which defaults to IfNotPresent. | false | |
155-
| `resources` | [ResourceRequirements](https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.28/#resourcerequirements-v1-core) | Resources is the resource requirements for the container.<br />This field cannot be updated once the cluster is created. | false | |
155+
| `resources` | [ResourceRequirements](https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.28/#resourcerequirements-v1-core) | Resources is the resource requirements for the server container. | false | |
156156
| `volumeMounts` | [VolumeMount](https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.28/#volumemount-v1-core) array | VolumeMounts is the list of volume mounts for the container. | false | |
157157
| `env` | [EnvVar](https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.28/#envvar-v1-core) array | Env is the list of environment variables to set in the container. | false | |
158158
| `securityContext` | [SecurityContext](https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.28/#securitycontext-v1-core) | SecurityContext defines the security options the container should be run with.<br />If set, the fields of SecurityContext override the equivalent fields of PodSecurityContext.<br />More info: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/ | false | |

0 commit comments

Comments
 (0)