From 2863c4ec7109ee7ee693d9cbec7749ee9931ee52 Mon Sep 17 00:00:00 2001 From: Vinayak Goyal Date: Thu, 16 May 2024 21:18:34 +0000 Subject: [PATCH] KEP-4633: Allow health-only anonymous auth mode. Signed-off-by: Vinayak Goyal Kubernetes-commit: 5e6a4937f5a3e20dd77238946220461332ecddff --- options/options_test.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/options/options_test.go b/options/options_test.go index ebc261a4..ec6135ce 100644 --- a/options/options_test.go +++ b/options/options_test.go @@ -26,6 +26,7 @@ import ( "github.com/google/go-cmp/cmp" "github.com/spf13/pflag" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" + apiserverapis "k8s.io/apiserver/pkg/apis/apiserver" apiserver "k8s.io/apiserver/pkg/server" apiserveroptions "k8s.io/apiserver/pkg/server/options" appconfig "k8s.io/cloud-provider/app/config" @@ -136,6 +137,7 @@ func TestDefaultFlags(t *testing.T) { ExtraHeaderPrefixes: []string{"x-remote-extra-"}, }, RemoteKubeConfigFileOptional: true, + Anonymous: &apiserverapis.AnonymousAuthConfig{Enabled: true}, }, Authorization: &apiserveroptions.DelegatingAuthorizationOptions{ AllowCacheTTL: 10 * time.Second, @@ -295,6 +297,7 @@ func TestAddFlags(t *testing.T) { ExtraHeaderPrefixes: []string{"x-remote-extra-"}, }, RemoteKubeConfigFileOptional: true, + Anonymous: &apiserverapis.AnonymousAuthConfig{Enabled: true}, }, Authorization: &apiserveroptions.DelegatingAuthorizationOptions{ AllowCacheTTL: 10 * time.Second,