Merge pull request #71601 from liggitt/surface-insecure-port-help

Surface help for insecure ports to explain how to disable

Kubernetes-commit: 611c3510d82941bb56c1d3c13d99521c70846260
This commit is contained in:
Kubernetes Publisher 2018-12-07 09:08:39 -08:00
commit 458311e40a
2 changed files with 227 additions and 225 deletions

446
Godeps/Godeps.json generated

File diff suppressed because it is too large Load Diff

View File

@ -85,11 +85,13 @@ func (s *DeprecatedInsecureServingOptions) AddUnqualifiedFlags(fs *pflag.FlagSet
}
fs.IPVar(&s.BindAddress, "address", s.BindAddress,
"DEPRECATED: see --bind-address instead.")
"The IP address on which to serve the insecure --port (set to 0.0.0.0 for all IPv4 interfaces and :: for all IPv6 interfaces).")
fs.MarkDeprecated("address", "see --bind-address instead.")
fs.Lookup("address").Hidden = false
fs.IntVar(&s.BindPort, "port", s.BindPort, "DEPRECATED: see --secure-port instead.")
fs.IntVar(&s.BindPort, "port", s.BindPort, "The port on which to serve unsecured, unauthenticated access. Set to 0 to disable.")
fs.MarkDeprecated("port", "see --secure-port instead.")
fs.Lookup("port").Hidden = false
}
// ApplyTo adds DeprecatedInsecureServingOptions to the insecureserverinfo amd kube-controller manager configuration.