Skip to content

Commit 3cccce1

Browse files
committed
update required to optional
1 parent f7c7b30 commit 3cccce1

File tree

3 files changed

+2
-8
lines changed

3 files changed

+2
-8
lines changed

charts/karpenter-crd/templates/karpenter.k8s.aws_ec2nodeclasses.yaml

-3
Original file line numberDiff line numberDiff line change
@@ -228,9 +228,6 @@ spec:
228228
RootVolume is a flag indicating if this device is mounted as kubelet root dir. You can
229229
configure at most one root volume in BlockDeviceMappings.
230230
type: boolean
231-
required:
232-
- deviceName
233-
- ebs
234231
type: object
235232
maxItems: 50
236233
type: array

pkg/apis/crds/karpenter.k8s.aws_ec2nodeclasses.yaml

-3
Original file line numberDiff line numberDiff line change
@@ -228,9 +228,6 @@ spec:
228228
RootVolume is a flag indicating if this device is mounted as kubelet root dir. You can
229229
configure at most one root volume in BlockDeviceMappings.
230230
type: boolean
231-
required:
232-
- deviceName
233-
- ebs
234231
type: object
235232
maxItems: 50
236233
type: array

pkg/apis/v1/ec2nodeclass.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -324,11 +324,11 @@ type MetadataOptions struct {
324324

325325
type BlockDeviceMapping struct {
326326
// The device name (for example, /dev/sdh or xvdh).
327-
// +required
327+
// +optional
328328
DeviceName *string `json:"deviceName,omitempty"`
329329
// EBS contains parameters used to automatically set up EBS volumes when an instance is launched.
330330
// +kubebuilder:validation:XValidation:message="snapshotID or volumeSize must be defined",rule="has(self.snapshotID) || has(self.volumeSize)"
331-
// +required
331+
// +optional
332332
EBS *BlockDevice `json:"ebs,omitempty"`
333333
// RootVolume is a flag indicating if this device is mounted as kubelet root dir. You can
334334
// configure at most one root volume in BlockDeviceMappings.

0 commit comments

Comments
 (0)