Skip to content

Commit 1d9b9d4

Browse files
committed
v1beta1
1 parent 2c3d7bc commit 1d9b9d4

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
@@ -909,9 +909,6 @@ spec:
909909
RootVolume is a flag indicating if this device is mounted as kubelet root dir. You can
910910
configure at most one root volume in BlockDeviceMappings.
911911
type: boolean
912-
required:
913-
- deviceName
914-
- ebs
915912
type: object
916913
maxItems: 50
917914
type: array

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

-3
Original file line numberDiff line numberDiff line change
@@ -909,9 +909,6 @@ spec:
909909
RootVolume is a flag indicating if this device is mounted as kubelet root dir. You can
910910
configure at most one root volume in BlockDeviceMappings.
911911
type: boolean
912-
required:
913-
- deviceName
914-
- ebs
915912
type: object
916913
maxItems: 50
917914
type: array

pkg/apis/v1beta1/ec2nodeclass.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -219,11 +219,11 @@ type MetadataOptions struct {
219219

220220
type BlockDeviceMapping struct {
221221
// The device name (for example, /dev/sdh or xvdh).
222-
// +required
222+
// +optional
223223
DeviceName *string `json:"deviceName,omitempty"`
224224
// EBS contains parameters used to automatically set up EBS volumes when an instance is launched.
225225
// +kubebuilder:validation:XValidation:message="snapshotID or volumeSize must be defined",rule="has(self.snapshotID) || has(self.volumeSize)"
226-
// +required
226+
// +optional
227227
EBS *BlockDevice `json:"ebs,omitempty"`
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.

0 commit comments

Comments
 (0)