mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-21 02:41:25 +00:00
Merge pull request #106408 from cynepco3hahue/e2e_node_quota_isci_test_fix_panic_nil_pointer_exception
e2e_node: fix nil pointer exception under quota lsci test
This commit is contained in:
commit
159fcbb01e
@ -66,6 +66,10 @@ func runOneQuotaTest(f *framework.Framework, quotasRequested bool) {
|
|||||||
}
|
}
|
||||||
// setting a threshold to 0% disables; non-empty map overrides default value (necessary due to omitempty)
|
// setting a threshold to 0% disables; non-empty map overrides default value (necessary due to omitempty)
|
||||||
initialConfig.EvictionHard = map[string]string{"memory.available": "0%"}
|
initialConfig.EvictionHard = map[string]string{"memory.available": "0%"}
|
||||||
|
|
||||||
|
if initialConfig.FeatureGates == nil {
|
||||||
|
initialConfig.FeatureGates = map[string]bool{}
|
||||||
|
}
|
||||||
initialConfig.FeatureGates[string(LSCIQuotaFeature)] = quotasRequested
|
initialConfig.FeatureGates[string(LSCIQuotaFeature)] = quotasRequested
|
||||||
})
|
})
|
||||||
runEvictionTest(f, evictionTestTimeout, noPressure, noStarvedResource, logDiskMetrics, []podEvictSpec{
|
runEvictionTest(f, evictionTestTimeout, noPressure, noStarvedResource, logDiskMetrics, []podEvictSpec{
|
||||||
|
Loading…
Reference in New Issue
Block a user