fix kubeadm e2e tests

This commit is contained in:
HirazawaUi
2025-06-15 00:01:29 +08:00
parent 25ee3984ae
commit c2988884f3

View File

@@ -52,14 +52,12 @@ var _ = Describe("nodes", func() {
List(ctx, metav1.ListOptions{})
framework.ExpectNoError(err, "error reading nodes")
var nodeLocalCRISocketEnabled bool
nodeLocalCRISocketEnabled := true
cc := getClusterConfiguration(f.ClientSet)
if _, ok := cc["featureGates"]; ok {
fgCC := cc["featureGates"].(map[interface{}]interface{})
if fg, ok := fgCC["NodeLocalCRISocket"]; ok {
nodeLocalCRISocketEnabled = fg.(bool)
} else {
nodeLocalCRISocketEnabled = true
}
}