Skip to content

Commit 60276f5

Browse files
feat: update AWSManagedMachinePool to include AL2023_x86_64_NEURON AMI type and adjust validation enum (#965) (#966)
1 parent 7f4c7cc commit 60276f5

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

config/crd/bases/infrastructure.cluster.x-k8s.io_awsmanagedmachinepools.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -544,7 +544,7 @@ spec:
544544
- AL2023_x86_64_STANDARD
545545
- AL2023_ARM_64_STANDARD
546546
- AL2023_x86_64_NVIDIA
547-
- AL2023_x86_64_NEURON
547+
- AL2023_x86_64_NEURON
548548
- CUSTOM
549549
type: string
550550
amiVersion:

exp/api/v1beta2/awsmanagedmachinepool_types.go

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,10 @@ const (
4040
Al2023x86_64 ManagedMachineAMIType = "AL2023_x86_64_STANDARD"
4141
// Al2023Arm64 is the AL2023 Arm AMI type.
4242
Al2023Arm64 ManagedMachineAMIType = "AL2023_ARM_64_STANDARD"
43+
// Al2023x86_64Nvidia is the AL2023 x86-64 NVIDIA AMI type.
44+
Al2023x86_64Nvidia ManagedMachineAMIType = "AL2023_x86_64_NVIDIA"
45+
// Al2023x86_64Neuron is the AL2023 x86-64 NEURON AMI type.
46+
Al2023x86_64Neuron ManagedMachineAMIType = "AL2023_x86_64_NEURON"
4347
)
4448

4549
// ManagedMachinePoolCapacityType specifies the capacity type to be used for the managed MachinePool.
@@ -107,7 +111,7 @@ type AWSManagedMachinePoolSpec struct {
107111
AMIVersion *string `json:"amiVersion,omitempty"`
108112

109113
// AMIType defines the AMI type
110-
// +kubebuilder:validation:Enum:=AL2_x86_64;AL2_x86_64_GPU;AL2_ARM_64;AL2023_x86_64_STANDARD;AL2023_ARM_64_STANDARD;CUSTOM
114+
// +kubebuilder:validation:Enum:=AL2_x86_64;AL2_x86_64_GPU;AL2_ARM_64;AL2023_x86_64_STANDARD;AL2023_ARM_64_STANDARD;AL2023_x86_64_NVIDIA;AL2023_x86_64_NEURON;CUSTOM
111115
// +kubebuilder:default:=AL2_x86_64
112116
// +optional
113117
AMIType *ManagedMachineAMIType `json:"amiType,omitempty"`

0 commit comments

Comments
 (0)