Skip to content

Commit

Permalink
Add e2etest ubuntu2204 gpunodriver scriptless (#5671)
Browse files Browse the repository at this point in the history
  • Loading branch information
xmzhao0822 authored Jan 28, 2025
1 parent beba1e5 commit 947a7c1
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions e2e/scenario_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -957,6 +957,36 @@ func Test_Ubuntu2204_GPUNoDriver(t *testing.T) {
})
}

func Test_Ubuntu2204_GPUNoDriver_Scriptless(t *testing.T) {
RunScenario(t, &Scenario{
Description: "Tests that a GPU-enabled node using the Ubuntu 2204 VHD opting for skipping gpu driver installation can be properly bootstrapped",
Tags: Tags{
GPU: true,
},
Config: Config{
Cluster: ClusterKubenet,
VHD: config.VHDUbuntu2204Gen2Containerd,
AKSNodeConfigMutator: func(config *aksnodeconfigv1.Configuration) {
config.VmSize = "Standard_NC6s_v3"
config.GpuConfig.ConfigGpuDriver = true
config.GpuConfig.GpuDevicePlugin = false
config.GpuConfig.EnableNvidia = to.Ptr(true)
},
VMConfigMutator: func(vmss *armcompute.VirtualMachineScaleSet) {
// this vmss tag is needed since there is a logic in cse_main.sh otherwise the test will fail
vmss.Tags = map[string]*string{
// deliberately case mismatched to agentbaker logic to check case insensitivity
"SkipGPUDriverInstall": to.Ptr("true"),
}
vmss.SKU.Name = to.Ptr("Standard_NC6s_v3")
},
Validator: func(ctx context.Context, s *Scenario) {
ValidateNvidiaSMINotInstalled(ctx, s)
},
},
})
}

func Test_Ubuntu2204_PrivateKubePkg(t *testing.T) {
RunScenario(t, &Scenario{
Description: "Tests that a node using the Ubuntu 2204 VHD that was built with private kube packages can be properly bootstrapped with the specified kube version",
Expand Down

0 comments on commit 947a7c1

Please sign in to comment.