From 9e47f6337921cfcd1f2e5b9ef2ab3d4d6a18e021 Mon Sep 17 00:00:00 2001 From: Leo Ryu Date: Fri, 8 Oct 2021 16:12:01 +0800 Subject: [PATCH] fix(platform): get mode from flags (#1618) --- pkg/apiserver/options/authorization.go | 1 + 1 file changed, 1 insertion(+) diff --git a/pkg/apiserver/options/authorization.go b/pkg/apiserver/options/authorization.go index 3504125dd..f40cad04f 100644 --- a/pkg/apiserver/options/authorization.go +++ b/pkg/apiserver/options/authorization.go @@ -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