Skip to content

Commit

Permalink
update required to optional
Browse files Browse the repository at this point in the history
  • Loading branch information
njtran committed Sep 18, 2024
1 parent 900c8bb commit 1a7d8d7
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -228,9 +228,6 @@ spec:
RootVolume is a flag indicating if this device is mounted as kubelet root dir. You can
configure at most one root volume in BlockDeviceMappings.
type: boolean
required:
- deviceName
- ebs
type: object
maxItems: 50
type: array
Expand Down
3 changes: 0 additions & 3 deletions pkg/apis/crds/karpenter.k8s.aws_ec2nodeclasses.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -228,9 +228,6 @@ spec:
RootVolume is a flag indicating if this device is mounted as kubelet root dir. You can
configure at most one root volume in BlockDeviceMappings.
type: boolean
required:
- deviceName
- ebs
type: object
maxItems: 50
type: array
Expand Down
4 changes: 2 additions & 2 deletions pkg/apis/v1/ec2nodeclass.go
Original file line number Diff line number Diff line change
Expand Up @@ -324,11 +324,11 @@ type MetadataOptions struct {

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

0 comments on commit 1a7d8d7

Please sign in to comment.