Skip to content

Commit 0dd4090

Browse files
r2k1Copilot
andcommitted
test(e2e): add Windows VHD caching scenario with legacy TLS bootstrap
Existing Test_Windows2022_VHDCaching runs with secure TLS bootstrap enabled, which masks bugs in the legacy bootstrap-token path on Windows PIS / two-stage CSE provisioning. This scenario forces kubelet onto the legacy path so stage 2's WaitUntilNodeReady catches regressions there. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent 0a5b677 commit 0dd4090

1 file changed

Lines changed: 25 additions & 0 deletions

File tree

e2e/scenario_win_test.go

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -440,6 +440,31 @@ func Test_Windows2022_VHDCaching(t *testing.T) {
440440
})
441441
}
442442

443+
// Test_Windows2022_VHDCaching_LegacyTLSBootstrap exercises Windows PIS /
444+
// VHD-cached provisioning with secure TLS bootstrap disabled, forcing kubelet
445+
// to use the legacy bootstrap-token path. Catches regressions in the two-stage
446+
// CSE flow that only surface when no secure-tls-bootstrap client is around to
447+
// overwrite the temporary kubeconfig.
448+
func Test_Windows2022_VHDCaching_LegacyTLSBootstrap(t *testing.T) {
449+
RunScenario(t, &Scenario{
450+
Description: "VHD Caching with secure TLS bootstrap disabled",
451+
Config: Config{
452+
Cluster: ClusterAzureNetwork,
453+
VHD: config.VHDWindows2022Containerd,
454+
VHDCaching: true,
455+
VMConfigMutator: func(vmss *armcompute.VirtualMachineScaleSet) {
456+
vmss.SKU.Capacity = to.Ptr[int64](2)
457+
},
458+
BootstrapConfigMutator: func(_ *Cluster, nbc *datamodel.NodeBootstrappingConfiguration) {
459+
if nbc.SecureTLSBootstrappingConfig == nil {
460+
nbc.SecureTLSBootstrappingConfig = &datamodel.SecureTLSBootstrappingConfig{}
461+
}
462+
nbc.SecureTLSBootstrappingConfig.Enabled = false
463+
},
464+
},
465+
})
466+
}
467+
443468
func Test_Windows2022Gen2_k8s_133(t *testing.T) {
444469
RunScenario(t, &Scenario{
445470
Description: "Windows Server 2022 with Containerd 2- hyperv gen 2",

0 commit comments

Comments
 (0)