update delegating auth to include front-proxy

This commit is contained in:
deads2k
2016-12-05 13:46:25 -05:00
parent 4f625db133
commit fbb35b72ed
5 changed files with 59 additions and 23 deletions

View File

@@ -99,14 +99,14 @@ func (serverOptions *ServerRunOptions) Run(stopCh <-chan struct{}) error {
glog.Fatalf("Error creating self-signed certificates: %v", err)
}
config, err := genericapiserver.NewConfig().
config := genericapiserver.NewConfig().
ApplyOptions(serverOptions.GenericServerRunOptions).
ApplyInsecureServingOptions(serverOptions.InsecureServing).
ApplyAuthenticationOptions(serverOptions.Authentication).
ApplySecureServingOptions(serverOptions.SecureServing)
if err != nil {
ApplyInsecureServingOptions(serverOptions.InsecureServing)
if _, err := config.ApplySecureServingOptions(serverOptions.SecureServing); err != nil {
return fmt.Errorf("failed to configure https: %s", err)
}
config.ApplyAuthenticationOptions(serverOptions.Authentication)
config.Authorizer = authorizer.NewAlwaysAllowAuthorizer()
s, err := config.Complete().New()