Skip to content

Commit eb53bcb

Browse files
committed
v1beta1
1 parent 1a7d8d7 commit eb53bcb

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
@@ -913,9 +913,6 @@ spec:
913913
RootVolume is a flag indicating if this device is mounted as kubelet root dir. You can
914914
configure at most one root volume in BlockDeviceMappings.
915915
type: boolean
916-
required:
917-
- deviceName
918-
- ebs
919916
type: object
920917
maxItems: 50
921918
type: array

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

-3
Original file line numberDiff line numberDiff line change
@@ -913,9 +913,6 @@ spec:
913913
RootVolume is a flag indicating if this device is mounted as kubelet root dir. You can
914914
configure at most one root volume in BlockDeviceMappings.
915915
type: boolean
916-
required:
917-
- deviceName
918-
- ebs
919916
type: object
920917
maxItems: 50
921918
type: array

pkg/apis/v1beta1/ec2nodeclass.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -226,11 +226,11 @@ type MetadataOptions struct {
226226

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

0 commit comments

Comments
 (0)