change web kubectl to use sa

This commit is contained in:
Jeff
2019-11-09 16:22:45 +08:00
committed by zryfish
parent 2c94cfddf1
commit 443e37d8bd
3 changed files with 18 additions and 12 deletions

View File

@@ -94,7 +94,7 @@ func Run(s *options.ServerRunOptions, stopChan <-chan struct{}) error {
waitForResourceSync(stopChan)
err := iam.Init(s.AdminEmail, s.AdminPassword, s.AuthRateLimit, s.TokenIdleTimeout, s.EnableMultiLogin)
err := iam.Init(s.AdminEmail, s.AdminPassword, s.AuthRateLimit, s.TokenIdleTimeout, s.EnableMultiLogin, s.GenerateKubeConfig)
jwtutil.Setup(s.JWTSecret)