mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-24 20:24:09 +00:00
e2e_node: cleanup features in podresources
This commit is contained in:
parent
f28dd90810
commit
742d3d36f5
@ -664,11 +664,7 @@ func configurePodResourcesInKubelet(f *framework.Framework, cleanStateFile bool,
|
|||||||
oldCfg, err := getCurrentKubeletConfig()
|
oldCfg, err := getCurrentKubeletConfig()
|
||||||
framework.ExpectNoError(err)
|
framework.ExpectNoError(err)
|
||||||
newCfg := oldCfg.DeepCopy()
|
newCfg := oldCfg.DeepCopy()
|
||||||
if newCfg.FeatureGates == nil {
|
newCfg.FeatureGates[string(kubefeatures.KubeletPodResourcesGetAllocatable)] = true
|
||||||
newCfg.FeatureGates = make(map[string]bool)
|
|
||||||
}
|
|
||||||
newCfg.FeatureGates["CPUManager"] = true
|
|
||||||
newCfg.FeatureGates["KubeletPodResourcesGetAllocatable"] = true
|
|
||||||
|
|
||||||
// After graduation of the CPU Manager feature to Beta, the CPU Manager
|
// 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
|
// "none" policy is ON by default. But when we set the CPU Manager policy to
|
||||||
|
Loading…
Reference in New Issue
Block a user