Skip to content

Commit

Permalink
fix(platform): get mode from flags (#1618)
Browse files Browse the repository at this point in the history
  • Loading branch information
leoryu committed Oct 8, 2021
1 parent 876710f commit 9e47f63
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pkg/apiserver/options/authorization.go
Expand Up @@ -90,6 +90,7 @@ func (o *AuthorizationOptions) ApplyFlags() []error {
o.AllowCacheTTL = viper.GetDuration(configAuthzWebhookCacheAuthorizedTTL)
o.DenyCacheTTL = viper.GetDuration(configAuthzWebhookCacheUnauthorizedTTL)
o.WebhookConfigFile = viper.GetString(configAuthzWebhookConfigFile)
o.Modes = viper.GetStringSlice(configAuthzMode)

if len(o.Modes) == 0 {
return errs
Expand Down

0 comments on commit 9e47f63

Please sign in to comment.