update delegating auth to include front-proxy

This commit is contained in:
deads2k 2016-12-05 13:46:25 -05:00
parent a3f7c29c17
commit 2d8ab875b2
1 changed files with 5 additions and 5 deletions

View File

@ -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()