mirror of https://github.com/k3s-io/k3s
Fix the method name of BuiltInAuthenticationOptions
change the BuiltInAuthenticationOptions.WithAnyonymous to WithAnonymous would be better.pull/6/head
parent
a227c1ea2c
commit
4355d7014d
|
@ -88,7 +88,7 @@ func NewBuiltInAuthenticationOptions() *BuiltInAuthenticationOptions {
|
||||||
|
|
||||||
func (s *BuiltInAuthenticationOptions) WithAll() *BuiltInAuthenticationOptions {
|
func (s *BuiltInAuthenticationOptions) WithAll() *BuiltInAuthenticationOptions {
|
||||||
return s.
|
return s.
|
||||||
WithAnyonymous().
|
WithAnonymous().
|
||||||
WithBootstrapToken().
|
WithBootstrapToken().
|
||||||
WithClientCert().
|
WithClientCert().
|
||||||
WithKeystone().
|
WithKeystone().
|
||||||
|
@ -100,7 +100,7 @@ func (s *BuiltInAuthenticationOptions) WithAll() *BuiltInAuthenticationOptions {
|
||||||
WithWebHook()
|
WithWebHook()
|
||||||
}
|
}
|
||||||
|
|
||||||
func (s *BuiltInAuthenticationOptions) WithAnyonymous() *BuiltInAuthenticationOptions {
|
func (s *BuiltInAuthenticationOptions) WithAnonymous() *BuiltInAuthenticationOptions {
|
||||||
s.Anonymous = &AnonymousAuthenticationOptions{Allow: true}
|
s.Anonymous = &AnonymousAuthenticationOptions{Allow: true}
|
||||||
return s
|
return s
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue