Skip to content

Commit

Permalink
Add e2e test azurelinux v2 gpu azure cni scriptless (#5731)
Browse files Browse the repository at this point in the history
  • Loading branch information
xmzhao0822 authored Feb 3, 2025
1 parent 6c09dab commit 5b4a2ba
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions e2e/scenario_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -253,6 +253,32 @@ func Test_AzureLinuxV2_GPUAzureCNI(t *testing.T) {
})
}

func Test_AzureLinuxV2_GPUAzureCNI_Scriptless(t *testing.T) {
RunScenario(t, &Scenario{
Description: "AzureLinux V2 (CgroupV2) gpu scenario on cluster configured with Azure CNI",
Tags: Tags{
GPU: true,
},
Config: Config{
Cluster: ClusterAzureNetwork,
VHD: config.VHDAzureLinuxV2Gen2,
AKSNodeConfigMutator: func(config *aksnodeconfigv1.Configuration) {
config.NetworkConfig.NetworkPlugin = aksnodeconfigv1.NetworkPlugin_NETWORK_PLUGIN_AZURE
config.VmSize = "Standard_NC6s_v3"
config.GpuConfig.ConfigGpuDriver = true
config.GpuConfig.GpuDevicePlugin = false
config.GpuConfig.EnableNvidia = to.Ptr(true)

},
VMConfigMutator: func(vmss *armcompute.VirtualMachineScaleSet) {
vmss.SKU.Name = to.Ptr("Standard_NC6s_v3")
},
Validator: func(ctx context.Context, s *Scenario) {
},
},
})
}

func Test_AzureLinuxV2_WASM(t *testing.T) {
RunScenario(t, &Scenario{
Description: "tests that a new AzureLinuxV2 (CgroupV2) node using krustlet can be properly bootstrapped",
Expand Down

0 comments on commit 5b4a2ba

Please sign in to comment.