Merge pull request #82929 from 41tair/master

fix map assignment to entry in nil map,when use --feature-gates in kubeadm
This commit is contained in:
Kubernetes Prow Robot
2019-09-22 12:53:22 -07:00
committed by GitHub

View File

@@ -58,7 +58,7 @@ const (
// DefaultKubeProxyConfiguration assigns default values for the kube-proxy ComponentConfig
func DefaultKubeProxyConfiguration(internalcfg *kubeadmapi.ClusterConfiguration) {
externalproxycfg := &kubeproxyconfigv1alpha1.KubeProxyConfiguration{}
externalproxycfg := &kubeproxyconfigv1alpha1.KubeProxyConfiguration{FeatureGates: make(map[string]bool)}
kind := "KubeProxyConfiguration"
// Do a roundtrip to the external version for defaulting