mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-27 21:47:07 +00:00
Mark some flags as deprecated so thus don't show up in help
This commit is contained in:
parent
03dbf6503c
commit
347c7b5b82
@ -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 "+
|
"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.")
|
"port. This is performed by nginx in the default setup.")
|
||||||
fs.IntVar(&s.InsecurePort, "port", s.InsecurePort, "DEPRECATED: see --insecure-port instead")
|
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, ""+
|
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). "+
|
"The IP address on which to serve the --insecure-port (set to 0.0.0.0 for all interfaces). "+
|
||||||
"Defaults to localhost.")
|
"Defaults to localhost.")
|
||||||
fs.IPVar(&s.InsecureBindAddress, "address", s.InsecureBindAddress, "DEPRECATED: see --insecure-bind-address instead")
|
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, ""+
|
fs.IPVar(&s.BindAddress, "bind-address", s.BindAddress, ""+
|
||||||
"The IP address on which to serve the --read-only-port and --secure-port ports. The "+
|
"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 "+
|
"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 "+
|
"will be used. If --bind-address is unspecified, the host's default interface will "+
|
||||||
"be used.")
|
"be used.")
|
||||||
fs.IPVar(&s.BindAddress, "public-address-override", s.BindAddress, "DEPRECATED: see --bind-address instead")
|
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, ""+
|
fs.IntVar(&s.SecurePort, "secure-port", s.SecurePort, ""+
|
||||||
"The port on which to serve HTTPS with authentication and authorization. If 0, "+
|
"The port on which to serve HTTPS with authentication and authorization. If 0, "+
|
||||||
"don't serve HTTPS at all.")
|
"don't serve HTTPS at all.")
|
||||||
|
Loading…
Reference in New Issue
Block a user