Commit da971d80 authored by xiangpengzhao's avatar xiangpengzhao

Only set defaults when DynamicKubeletConfig feature gate is on.

parent 845a10f0
...@@ -110,7 +110,9 @@ func SetDefaults_MasterConfiguration(obj *MasterConfiguration) { ...@@ -110,7 +110,9 @@ func SetDefaults_MasterConfiguration(obj *MasterConfiguration) {
} }
SetDefaultsEtcdSelfHosted(obj) SetDefaultsEtcdSelfHosted(obj)
SetDefaults_KubeletConfiguration(obj) if features.Enabled(obj.FeatureGates, features.DynamicKubeletConfig) {
SetDefaults_KubeletConfiguration(obj)
}
SetDefaults_ProxyConfiguration(obj) SetDefaults_ProxyConfiguration(obj)
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment