Skip to content

Commit 1df9344

Browse files
authored
Merge pull request #4972 from k8s-infra-cherrypick-robot/cherry-pick-4960-to-release-2.4
[release-2.4] ✨ feat(ami): add support for AL2023 type
2 parents ceabdfb + dcce37e commit 1df9344

File tree

5 files changed

+21
-2
lines changed

5 files changed

+21
-2
lines changed

cmd/clusterawsadm/api/ami/v1beta1/zz_generated.defaults.go

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,8 @@ spec:
6262
- AL2_x86_64
6363
- AL2_x86_64_GPU
6464
- AL2_ARM_64
65+
- AL2023_x86_64_STANDARD
66+
- AL2023_ARM_64_STANDARD
6567
- CUSTOM
6668
type: string
6769
amiVersion:
@@ -510,6 +512,8 @@ spec:
510512
- AL2_x86_64
511513
- AL2_x86_64_GPU
512514
- AL2_ARM_64
515+
- AL2023_x86_64_STANDARD
516+
- AL2023_ARM_64_STANDARD
513517
- CUSTOM
514518
type: string
515519
amiVersion:

docs/book/src/crd/index.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16440,6 +16440,12 @@ int64
1644016440
</tr><tr><td><p>&#34;AL2_x86_64_GPU&#34;</p></td>
1644116441
<td><p>Al2x86_64GPU is the x86-64 GPU AMI type.</p>
1644216442
</td>
16443+
<tr><td><p>&#34;AL2023_ARM_64_STANDARD&#34;</p></td>
16444+
<td><p>Al2023Arm64 is the AL2023 Arm AMI type.</p>
16445+
</td>
16446+
</tr><tr><td><p>&#34;AL2023_x86_64_STANDARD&#34;</p></td>
16447+
<td><p>Al2023x86_64 is the AL2023 x86 AMI type.</p>
16448+
</td>
1644316449
</tr></tbody>
1644416450
</table>
1644516451
<h3 id="infrastructure.cluster.x-k8s.io/v1beta1.ManagedMachinePoolCapacityType">ManagedMachinePoolCapacityType

exp/api/v1beta1/awsmanagedmachinepool_types.go

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,10 @@ const (
3737
Al2x86_64GPU ManagedMachineAMIType = "AL2_x86_64_GPU"
3838
// Al2Arm64 is the Arm AMI type.
3939
Al2Arm64 ManagedMachineAMIType = "AL2_ARM_64"
40+
// Al2023x86_64 is the AL2023 x86-64 AMI type.
41+
Al2023x86_64 ManagedMachineAMIType = "AL2023_x86_64_STANDARD"
42+
// Al2023Arm64 is the AL2023 Arm AMI type.
43+
Al2023Arm64 ManagedMachineAMIType = "AL2023_ARM_64_STANDARD"
4044
)
4145

4246
// ManagedMachinePoolCapacityType specifies the capacity type to be used for the managed MachinePool.
@@ -99,7 +103,7 @@ type AWSManagedMachinePoolSpec struct {
99103
AMIVersion *string `json:"amiVersion,omitempty"`
100104

101105
// AMIType defines the AMI type
102-
// +kubebuilder:validation:Enum:=AL2_x86_64;AL2_x86_64_GPU;AL2_ARM_64;CUSTOM
106+
// +kubebuilder:validation:Enum:=AL2_x86_64;AL2_x86_64_GPU;AL2_ARM_64;AL2023_x86_64_STANDARD;AL2023_ARM_64_STANDARD;CUSTOM
103107
// +kubebuilder:default:=AL2_x86_64
104108
// +optional
105109
AMIType *ManagedMachineAMIType `json:"amiType,omitempty"`

exp/api/v1beta2/awsmanagedmachinepool_types.go

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,10 @@ const (
3737
Al2x86_64GPU ManagedMachineAMIType = "AL2_x86_64_GPU"
3838
// Al2Arm64 is the Arm AMI type.
3939
Al2Arm64 ManagedMachineAMIType = "AL2_ARM_64"
40+
// Al2023x86_64 is the AL2023 x86-64 AMI type.
41+
Al2023x86_64 ManagedMachineAMIType = "AL2023_x86_64_STANDARD"
42+
// Al2023Arm64 is the AL2023 Arm AMI type.
43+
Al2023Arm64 ManagedMachineAMIType = "AL2023_ARM_64_STANDARD"
4044
)
4145

4246
// ManagedMachinePoolCapacityType specifies the capacity type to be used for the managed MachinePool.
@@ -104,7 +108,7 @@ type AWSManagedMachinePoolSpec struct {
104108
AMIVersion *string `json:"amiVersion,omitempty"`
105109

106110
// AMIType defines the AMI type
107-
// +kubebuilder:validation:Enum:=AL2_x86_64;AL2_x86_64_GPU;AL2_ARM_64;CUSTOM
111+
// +kubebuilder:validation:Enum:=AL2_x86_64;AL2_x86_64_GPU;AL2_ARM_64;AL2023_x86_64_STANDARD;AL2023_ARM_64_STANDARD;CUSTOM
108112
// +kubebuilder:default:=AL2_x86_64
109113
// +optional
110114
AMIType *ManagedMachineAMIType `json:"amiType,omitempty"`

0 commit comments

Comments
 (0)