controller-manager: add authz/n to options, nil by default

Kubernetes-commit: cecd663c21d139a3a5a15b43a8dda8de26180246
This commit is contained in:
Dr. Stefan Schimanski 2018-02-08 14:19:02 +01:00 committed by Kubernetes Publisher
parent 338a852bbb
commit 0520d284e2
1 changed files with 4 additions and 0 deletions

View File

@ -131,6 +131,10 @@ func (s *DelegatingAuthenticationOptions) Validate() []error {
}
func (s *DelegatingAuthenticationOptions) AddFlags(fs *pflag.FlagSet) {
if s == nil {
return
}
fs.StringVar(&s.RemoteKubeConfigFile, "authentication-kubeconfig", s.RemoteKubeConfigFile, ""+
"kubeconfig file pointing at the 'core' kubernetes server with enough rights to create "+
"tokenaccessreviews.authentication.k8s.io.")