e2e_node: Check for DynamicKubeletConfig properly

Even DynamicKubeletConfig is deprecated it still used in e2e_node test.
The bug is hidden by forcibly enabled option
TEST_ARGS='--feature-gates=DynamicKubeletConfig=true'
if this option is not enabled setKubeletConfiguration tries to set
kubelet config via apiserver interface and failed with timeout.

Signed-off-by: Alexey Perevalov <alexey.perevalov@huawei.com>
This commit is contained in:
Alexey Perevalov 2021-08-20 15:01:42 +00:00
parent b0bc8adbc2
commit 461d8f51f0

View File

@ -188,7 +188,7 @@ func isKubeletConfigEnabled(f *framework.Framework) (bool, error) {
}
v, ok := cfgz.FeatureGates[string(features.DynamicKubeletConfig)]
if !ok {
return true, nil
return false, nil
}
return v, nil
}