Skip to content

Commit 7273161

Browse files
authored
Merge pull request kubernetes#132308 from HirazawaUi/fix-kubeadm-e2e-tests
Kubeadm: fix failing e2e tests
2 parents 25ee398 + c298888 commit 7273161

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

test/e2e_kubeadm/nodes_test.go

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -52,14 +52,12 @@ var _ = Describe("nodes", func() {
5252
List(ctx, metav1.ListOptions{})
5353
framework.ExpectNoError(err, "error reading nodes")
5454

55-
var nodeLocalCRISocketEnabled bool
55+
nodeLocalCRISocketEnabled := true
5656
cc := getClusterConfiguration(f.ClientSet)
5757
if _, ok := cc["featureGates"]; ok {
5858
fgCC := cc["featureGates"].(map[interface{}]interface{})
5959
if fg, ok := fgCC["NodeLocalCRISocket"]; ok {
6060
nodeLocalCRISocketEnabled = fg.(bool)
61-
} else {
62-
nodeLocalCRISocketEnabled = true
6361
}
6462
}
6563

0 commit comments

Comments
 (0)