From 2057f60defc504e2808ffe2641279783fb70164f Mon Sep 17 00:00:00 2001 From: Rohith Date: Thu, 3 Aug 2017 18:33:29 +0100 Subject: [PATCH] Kube Proxy Feature Gates - fixing the kubeproxy feature gates, this should have been a map not array (https://github.com/kubernetes/kops/blob/master/pkg/apis/kops/v1alpha2/componentconfig.go#L134) --- pkg/apis/kops/componentconfig.go | 2 +- pkg/apis/kops/v1alpha1/componentconfig.go | 2 +- pkg/apis/kops/v1alpha2/componentconfig.go | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/pkg/apis/kops/componentconfig.go b/pkg/apis/kops/componentconfig.go index 1d53e15f0a21c..cbd78368b9be0 100644 --- a/pkg/apis/kops/componentconfig.go +++ b/pkg/apis/kops/componentconfig.go @@ -158,7 +158,7 @@ type KubeProxyConfig struct { // Master is the address of the Kubernetes API server (overrides any value in kubeconfig) Master string `json:"master,omitempty" flag:"master"` // FeatureGates is a series of key pairs used to switch on features for the proxy - FeatureGates []string `json:"feature-gates" flag:"feature-gates"` + FeatureGates map[string]string `json:"featureGates" flag:"feature-gates"` } // KubeAPIServerConfig defines the configuration for the kube api diff --git a/pkg/apis/kops/v1alpha1/componentconfig.go b/pkg/apis/kops/v1alpha1/componentconfig.go index a40dd81091245..f924a05cc5c23 100644 --- a/pkg/apis/kops/v1alpha1/componentconfig.go +++ b/pkg/apis/kops/v1alpha1/componentconfig.go @@ -158,7 +158,7 @@ type KubeProxyConfig struct { // Master is the address of the Kubernetes API server (overrides any value in kubeconfig) Master string `json:"master,omitempty" flag:"master"` // FeatureGates is a series of key pairs used to switch on features for the proxy - FeatureGates []string `json:"feature-gates" flag:"feature-gates"` + FeatureGates map[string]string `json:"featureGates" flag:"feature-gates"` } // KubeAPIServerConfig defines the configuration for the kube api diff --git a/pkg/apis/kops/v1alpha2/componentconfig.go b/pkg/apis/kops/v1alpha2/componentconfig.go index 57fab2c49fe0a..4e51b7eb008ed 100644 --- a/pkg/apis/kops/v1alpha2/componentconfig.go +++ b/pkg/apis/kops/v1alpha2/componentconfig.go @@ -158,7 +158,7 @@ type KubeProxyConfig struct { // Master is the address of the Kubernetes API server (overrides any value in kubeconfig) Master string `json:"master,omitempty" flag:"master"` // FeatureGates is a series of key pairs used to switch on features for the proxy - FeatureGates []string `json:"feature-gates" flag:"feature-gates"` + FeatureGates map[string]string `json:"featureGates" flag:"feature-gates"` } // KubeAPIServerConfig defines the configuration for the kube api