diff --git a/pkg/apis/admissionregistration/validation/validation.go b/pkg/apis/admissionregistration/validation/validation.go index fcba295cac4..09200fb2bc7 100644 --- a/pkg/apis/admissionregistration/validation/validation.go +++ b/pkg/apis/admissionregistration/validation/validation.go @@ -47,7 +47,7 @@ func validateResources(resources []string, fldPath *field.Path) field.ErrorList // */x resourcesWithWildcardSubresoures := sets.String{} // x/* - subResoucesWithWildcardResource := sets.String{} + subResourcesWithWildcardResource := sets.String{} // */* hasDoubleWildcard := false // * @@ -75,14 +75,14 @@ func validateResources(resources []string, fldPath *field.Path) field.ErrorList if _, ok := resourcesWithWildcardSubresoures[res]; ok { allErrors = append(allErrors, field.Invalid(fldPath.Index(i), resSub, fmt.Sprintf("if '%s/*' is present, must not specify %s", res, resSub))) } - if _, ok := subResoucesWithWildcardResource[sub]; ok { + if _, ok := subResourcesWithWildcardResource[sub]; ok { allErrors = append(allErrors, field.Invalid(fldPath.Index(i), resSub, fmt.Sprintf("if '*/%s' is present, must not specify %s", sub, resSub))) } if sub == "*" { resourcesWithWildcardSubresoures[res] = struct{}{} } if res == "*" { - subResoucesWithWildcardResource[sub] = struct{}{} + subResourcesWithWildcardResource[sub] = struct{}{} } } if len(resources) > 1 && hasDoubleWildcard { diff --git a/pkg/cloudprovider/providers/azure/azure_vmss_cache.go b/pkg/cloudprovider/providers/azure/azure_vmss_cache.go index 534ba9d445b..07d30b78855 100644 --- a/pkg/cloudprovider/providers/azure/azure_vmss_cache.go +++ b/pkg/cloudprovider/providers/azure/azure_vmss_cache.go @@ -159,7 +159,7 @@ func extractVmssCacheKey(key string) (string, string, error) { // key is composed of # keyItems := strings.Split(key, vmssCacheSeparator) if len(keyItems) != 2 { - return "", "", fmt.Errorf("key %q is not in format '#'", key) + return "", "", fmt.Errorf("key %q is not in format '#'", key) } resourceGroup := keyItems[0] diff --git a/staging/src/k8s.io/client-go/restmapper/category_expansion.go b/staging/src/k8s.io/client-go/restmapper/category_expansion.go index 1620bbcf810..2537a2b4e25 100644 --- a/staging/src/k8s.io/client-go/restmapper/category_expansion.go +++ b/staging/src/k8s.io/client-go/restmapper/category_expansion.go @@ -21,7 +21,7 @@ import ( "k8s.io/client-go/discovery" ) -// CategoryExpander maps category strings to GroupResouces. +// CategoryExpander maps category strings to GroupResources. // Categories are classification or 'tag' of a group of resources. type CategoryExpander interface { Expand(category string) ([]schema.GroupResource, bool)