update delegating auth to include front-proxy
This commit is contained in:
parent
a3f7c29c17
commit
2d8ab875b2
|
@ -99,14 +99,14 @@ func (serverOptions *ServerRunOptions) Run(stopCh <-chan struct{}) error {
|
||||||
glog.Fatalf("Error creating self-signed certificates: %v", err)
|
glog.Fatalf("Error creating self-signed certificates: %v", err)
|
||||||
}
|
}
|
||||||
|
|
||||||
config, err := genericapiserver.NewConfig().
|
config := genericapiserver.NewConfig().
|
||||||
ApplyOptions(serverOptions.GenericServerRunOptions).
|
ApplyOptions(serverOptions.GenericServerRunOptions).
|
||||||
ApplyInsecureServingOptions(serverOptions.InsecureServing).
|
ApplyInsecureServingOptions(serverOptions.InsecureServing)
|
||||||
ApplyAuthenticationOptions(serverOptions.Authentication).
|
|
||||||
ApplySecureServingOptions(serverOptions.SecureServing)
|
if _, err := config.ApplySecureServingOptions(serverOptions.SecureServing); err != nil {
|
||||||
if err != nil {
|
|
||||||
return fmt.Errorf("failed to configure https: %s", err)
|
return fmt.Errorf("failed to configure https: %s", err)
|
||||||
}
|
}
|
||||||
|
config.ApplyAuthenticationOptions(serverOptions.Authentication)
|
||||||
|
|
||||||
config.Authorizer = authorizer.NewAlwaysAllowAuthorizer()
|
config.Authorizer = authorizer.NewAlwaysAllowAuthorizer()
|
||||||
s, err := config.Complete().New()
|
s, err := config.Complete().New()
|
||||||
|
|
Loading…
Reference in New Issue