mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-23 19:56:01 +00:00
fix typo
fix typo
This commit is contained in:
parent
4492337dbf
commit
18f1ad7dc5
@ -63,7 +63,7 @@ func (s *APIEnablementOptions) Validate(registries ...GroupRegisty) []error {
|
|||||||
errors := []error{}
|
errors := []error{}
|
||||||
if s.RuntimeConfig["api/all"] == "false" && len(s.RuntimeConfig) == 1 {
|
if s.RuntimeConfig["api/all"] == "false" && len(s.RuntimeConfig) == 1 {
|
||||||
// Do not allow only set api/all=false, in such case apiserver startup has no meaning.
|
// Do not allow only set api/all=false, in such case apiserver startup has no meaning.
|
||||||
return append(errors, fmt.Errorf("invliad key with only api/all=false"))
|
return append(errors, fmt.Errorf("invalid key with only api/all=false"))
|
||||||
}
|
}
|
||||||
|
|
||||||
groups, err := resourceconfig.ParseGroups(s.RuntimeConfig)
|
groups, err := resourceconfig.ParseGroups(s.RuntimeConfig)
|
||||||
|
Loading…
Reference in New Issue
Block a user