Merge pull request #107175 from roycaihw/doc/webhook-rule-validation

Fix examples of admission registration rules that contain wildcards
This commit is contained in:
Kubernetes Prow Robot 2022-02-09 15:35:44 -08:00 committed by GitHub
commit cfb2219ded
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -46,9 +46,9 @@ func validateResources(resources []string, fldPath *field.Path) field.ErrorList
allErrors = append(allErrors, field.Required(fldPath, ""))
}
// */x
resourcesWithWildcardSubresoures := sets.String{}
// x/*
resourcesWithWildcardSubresoures := sets.String{}
// */x
subResourcesWithWildcardResource := sets.String{}
// */*
hasDoubleWildcard := false