From 2f6027a092e020460dccfccac120db625d69dd9f Mon Sep 17 00:00:00 2001 From: Michael Taufen Date: Tue, 17 Jan 2017 13:05:04 -0800 Subject: [PATCH] Remove deprecated --auth-path flag --- cmd/kubelet/app/options/options.go | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/cmd/kubelet/app/options/options.go b/cmd/kubelet/app/options/options.go index cacb88b3aa5..9f9c3f1e4b9 100644 --- a/cmd/kubelet/app/options/options.go +++ b/cmd/kubelet/app/options/options.go @@ -49,8 +49,7 @@ type KubeletServer struct { // If true, an invalid KubeConfig will result in the Kubelet exiting with an error. RequireKubeConfig bool - AuthPath flag.StringFlag // Deprecated -- use KubeConfig instead - APIServerList []string // Deprecated -- use KubeConfig instead + APIServerList []string // Deprecated -- use KubeConfig instead // Insert a probability of random errors during calls to the master. ChaosChance float64 @@ -87,8 +86,6 @@ func (s *KubeletServer) AddFlags(fs *pflag.FlagSet) { fs.BoolVar(&s.RequireKubeConfig, "require-kubeconfig", s.RequireKubeConfig, "If true the Kubelet will exit if there are configuration errors, and will ignore the value of --api-servers in favor of the server defined in the kubeconfig file.") // DEPRECATED: Remove these flags at the beginning of 1.5. - fs.Var(&s.AuthPath, "auth-path", "Path to .kubernetes_auth file, specifying how to authenticate to API server.") - fs.MarkDeprecated("auth-path", "will be removed in a future version") fs.StringSliceVar(&s.APIServerList, "api-servers", []string{}, "List of Kubernetes API servers for publishing events, and reading pods and services. (ip:port), comma separated.") fs.MarkDeprecated("api-servers", "Use --kubeconfig instead. Will be removed in a future version.")