@@ -51,6 +51,10 @@ var _ = Describe("GPU instance support", func() {
51
51
amiFamily : api .NodeImageFamilyAmazonLinux2023 ,
52
52
gpuInstanceType : "g4dn.xlarge" ,
53
53
}),
54
+ Entry ("AL2023 ARM NVIDIA" , gpuInstanceEntry {
55
+ amiFamily : api .NodeImageFamilyAmazonLinux2023 ,
56
+ gpuInstanceType : "g5g.2xlarge" ,
57
+ }),
54
58
Entry ("AL2" , gpuInstanceEntry {
55
59
gpuInstanceType : "asdf" ,
56
60
amiFamily : api .NodeImageFamilyAmazonLinux2 ,
@@ -96,7 +100,6 @@ var _ = Describe("GPU instance support", func() {
96
100
ng .InstanceType = e .gpuInstanceType
97
101
ng .AMIFamily = e .amiFamily
98
102
assertValidationError (e , api .ValidateNodeGroup (0 , ng , api .NewClusterConfig ()))
99
-
100
103
},
101
104
Entry ("AL2023 INF" , gpuInstanceEntry {
102
105
amiFamily : api .NodeImageFamilyAmazonLinux2023 ,
@@ -110,6 +113,10 @@ var _ = Describe("GPU instance support", func() {
110
113
amiFamily : api .NodeImageFamilyAmazonLinux2023 ,
111
114
gpuInstanceType : "g4dn.xlarge" ,
112
115
}),
116
+ Entry ("AL2023 ARM NVIDIA" , gpuInstanceEntry {
117
+ amiFamily : api .NodeImageFamilyAmazonLinux2023 ,
118
+ gpuInstanceType : "g5g.2xlarge" ,
119
+ }),
113
120
Entry ("AL2" , gpuInstanceEntry {
114
121
gpuInstanceType : "g4dn.xlarge" ,
115
122
amiFamily : api .NodeImageFamilyAmazonLinux2 ,
@@ -244,16 +251,11 @@ var _ = Describe("GPU instance support", func() {
244
251
amiFamily := api .NodeImageFamilyAmazonLinux2023
245
252
instanceType := "g5g.2xlarge"
246
253
247
- ngFail := api .NewNodeGroup ()
248
- ngFail .AMIFamily = amiFamily
249
- ngFail .InstanceType = instanceType
250
-
251
254
ngPass := api .NewNodeGroup ()
252
255
ngPass .AMIFamily = amiFamily
253
256
ngPass .InstanceType = instanceType
254
257
ngPass .AMI = "ami-xxxx"
255
258
256
- Expect (api .ValidateNodeGroup (0 , ngFail , api .NewClusterConfig ())).To (HaveOccurred ())
257
259
Expect (api .ValidateNodeGroup (0 , ngPass , api .NewClusterConfig ())).NotTo (HaveOccurred ())
258
260
})
259
261
@@ -263,14 +265,14 @@ var _ = Describe("GPU instance support", func() {
263
265
ng .AMIFamily = amiFamily
264
266
err := api .ValidateNodeGroup (0 , ng , api .NewClusterConfig ())
265
267
if expectErr {
266
- Expect (err ).To (MatchError (fmt .Sprintf ("ARM GPU instance types are not supported for unmanaged nodegroups with AMIFamily %s" , amiFamily )))
268
+ Expect (err ).To (MatchError (fmt .Sprintf ("%s instance types are not supported for unmanaged nodegroups with AMIFamily %s" , ng . InstanceType , amiFamily )))
267
269
} else {
268
270
Expect (err ).NotTo (HaveOccurred ())
269
271
}
270
272
},
271
273
Entry ("AmazonLinux2" , api .NodeImageFamilyAmazonLinux2 , true ),
272
- Entry ("AmazonLinux2023" , api .NodeImageFamilyAmazonLinux2023 , true ),
273
- Entry ("Ubuntu2004" , api .NodeImageFamilyUbuntu2004 , true ),
274
+ Entry ("AmazonLinux2023" , api .NodeImageFamilyAmazonLinux2023 , false ),
275
+ Entry ("Ubuntu2004" , api .NodeImageFamilyUbuntu2004 , false ),
274
276
Entry ("Windows2019Full" , api .NodeImageFamilyWindowsServer2019FullContainer , true ),
275
277
Entry ("Windows2019Core" , api .NodeImageFamilyWindowsServer2019CoreContainer , true ),
276
278
Entry ("Bottlerocket" , api .NodeImageFamilyBottlerocket , false ),
0 commit comments