e2e_node: cleanup features in podresources

This commit is contained in:
Danielle Lancashire 2021-10-05 10:59:08 +02:00
parent f28dd90810
commit 742d3d36f5

View File

@ -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