From 742d3d36f5f46866c06c2a267ea38e382f817ecb Mon Sep 17 00:00:00 2001 From: Danielle Lancashire Date: Tue, 5 Oct 2021 10:59:08 +0200 Subject: [PATCH] e2e_node: cleanup features in podresources --- test/e2e_node/podresources_test.go | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/test/e2e_node/podresources_test.go b/test/e2e_node/podresources_test.go index e72ead5df49..7bb3b8bbb12 100644 --- a/test/e2e_node/podresources_test.go +++ b/test/e2e_node/podresources_test.go @@ -664,11 +664,7 @@ func configurePodResourcesInKubelet(f *framework.Framework, cleanStateFile bool, oldCfg, err := getCurrentKubeletConfig() framework.ExpectNoError(err) newCfg := oldCfg.DeepCopy() - if newCfg.FeatureGates == nil { - newCfg.FeatureGates = make(map[string]bool) - } - newCfg.FeatureGates["CPUManager"] = true - newCfg.FeatureGates["KubeletPodResourcesGetAllocatable"] = true + newCfg.FeatureGates[string(kubefeatures.KubeletPodResourcesGetAllocatable)] = true // After graduation of the CPU Manager feature to Beta, the CPU Manager // "none" policy is ON by default. But when we set the CPU Manager policy to