mirror of
https://github.com/outbackdingo/kubernetes.git
synced 2026-01-27 18:19:28 +00:00
Merge pull request #131980 from LucaBernstein/fix-typo
Fix typo in the `--anonymous-auth` flag name
This commit is contained in:
@@ -567,7 +567,7 @@ func (o *BuiltInAuthenticationOptions) ToAuthenticationConfig() (kubeauthenticat
|
||||
switch {
|
||||
case ret.AuthenticationConfig.Anonymous != nil && o.Anonymous.FlagsSet:
|
||||
// Flags and config file are mutually exclusive
|
||||
return kubeauthenticator.Config{}, field.Forbidden(field.NewPath("anonymous"), "--anonynous-auth flag cannot be set when anonymous field is configured in authentication configuration file")
|
||||
return kubeauthenticator.Config{}, field.Forbidden(field.NewPath("anonymous"), "--anonymous-auth flag cannot be set when anonymous field is configured in authentication configuration file")
|
||||
case ret.AuthenticationConfig.Anonymous != nil:
|
||||
// Use the config-file-specified values
|
||||
ret.Anonymous = *ret.AuthenticationConfig.Anonymous
|
||||
|
||||
@@ -690,7 +690,7 @@ anonymous:
|
||||
enabled: true
|
||||
`),
|
||||
},
|
||||
expectErr: "--anonynous-auth flag cannot be set when anonymous field is configured in authentication configuration file",
|
||||
expectErr: "--anonymous-auth flag cannot be set when anonymous field is configured in authentication configuration file",
|
||||
},
|
||||
{
|
||||
name: "flag-anonymous-enabled-file-anonymous-notset-AnonymousAuthConfigurableEndpoints-enabled",
|
||||
|
||||
Reference in New Issue
Block a user