From 4355d7014d3f2009c90bc1fe55c8f174fe6809d1 Mon Sep 17 00:00:00 2001 From: zhangyujun Date: Fri, 11 Aug 2017 10:54:23 +0800 Subject: [PATCH] Fix the method name of BuiltInAuthenticationOptions change the BuiltInAuthenticationOptions.WithAnyonymous to WithAnonymous would be better. --- pkg/kubeapiserver/options/authentication.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/kubeapiserver/options/authentication.go b/pkg/kubeapiserver/options/authentication.go index 89a5219d6af..5b36415a5ab 100644 --- a/pkg/kubeapiserver/options/authentication.go +++ b/pkg/kubeapiserver/options/authentication.go @@ -88,7 +88,7 @@ func NewBuiltInAuthenticationOptions() *BuiltInAuthenticationOptions { func (s *BuiltInAuthenticationOptions) WithAll() *BuiltInAuthenticationOptions { return s. - WithAnyonymous(). + WithAnonymous(). WithBootstrapToken(). WithClientCert(). WithKeystone(). @@ -100,7 +100,7 @@ func (s *BuiltInAuthenticationOptions) WithAll() *BuiltInAuthenticationOptions { WithWebHook() } -func (s *BuiltInAuthenticationOptions) WithAnyonymous() *BuiltInAuthenticationOptions { +func (s *BuiltInAuthenticationOptions) WithAnonymous() *BuiltInAuthenticationOptions { s.Anonymous = &AnonymousAuthenticationOptions{Allow: true} return s }