mirror of
https://github.com/kubernetes/kubernetes.git
synced 2026-06-09 00:34:10 -04:00
Merge pull request #133659 from kannon92/fix-pod-resources-api
Fix panic in PodResources API test when FeatureGates is nil
This commit is contained in:
commit
4f1ac4f7ac
1 changed files with 3 additions and 0 deletions
|
|
@ -1624,6 +1624,9 @@ var _ = SIGDescribe("POD Resources API", framework.WithSerial(), feature.PodReso
|
|||
cpus := reservedSystemCPUs.String()
|
||||
framework.Logf("configurePodResourcesInKubelet: using reservedSystemCPUs=%q", cpus)
|
||||
initialConfig.ReservedSystemCPUs = cpus
|
||||
if initialConfig.FeatureGates == nil {
|
||||
initialConfig.FeatureGates = make(map[string]bool)
|
||||
}
|
||||
initialConfig.FeatureGates["KubeletPodResourcesListUseActivePods"] = false
|
||||
})
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue