From 347c7b5b822ee64c6e7b6ea3f486afde1b71e5bd Mon Sep 17 00:00:00 2001 From: Eric Paris Date: Fri, 14 Aug 2015 19:28:03 -0400 Subject: [PATCH] Mark some flags as deprecated so thus don't show up in help --- cmd/kube-apiserver/app/server.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/cmd/kube-apiserver/app/server.go b/cmd/kube-apiserver/app/server.go index 7e0cea908c7..bbc99d3c2aa 100644 --- a/cmd/kube-apiserver/app/server.go +++ b/cmd/kube-apiserver/app/server.go @@ -152,10 +152,12 @@ func (s *APIServer) AddFlags(fs *pflag.FlagSet) { "the cluster and that port 443 on the cluster's public address is proxied to this "+ "port. This is performed by nginx in the default setup.") fs.IntVar(&s.InsecurePort, "port", s.InsecurePort, "DEPRECATED: see --insecure-port instead") + fs.MarkDeprecated("port", "see --insecure-port instead") fs.IPVar(&s.InsecureBindAddress, "insecure-bind-address", s.InsecureBindAddress, ""+ "The IP address on which to serve the --insecure-port (set to 0.0.0.0 for all interfaces). "+ "Defaults to localhost.") fs.IPVar(&s.InsecureBindAddress, "address", s.InsecureBindAddress, "DEPRECATED: see --insecure-bind-address instead") + fs.MarkDeprecated("address", "see --insecure-bind-address instread") fs.IPVar(&s.BindAddress, "bind-address", s.BindAddress, ""+ "The IP address on which to serve the --read-only-port and --secure-port ports. The "+ "associated interface(s) must be reachable by the rest of the cluster, and by CLI/web "+ @@ -166,6 +168,7 @@ func (s *APIServer) AddFlags(fs *pflag.FlagSet) { "will be used. If --bind-address is unspecified, the host's default interface will "+ "be used.") fs.IPVar(&s.BindAddress, "public-address-override", s.BindAddress, "DEPRECATED: see --bind-address instead") + fs.MarkDeprecated("public-address-override", "see --bind-address instead") fs.IntVar(&s.SecurePort, "secure-port", s.SecurePort, ""+ "The port on which to serve HTTPS with authentication and authorization. If 0, "+ "don't serve HTTPS at all.")