mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-23 03:41:45 +00:00
Merge pull request #107175 from roycaihw/doc/webhook-rule-validation
Fix examples of admission registration rules that contain wildcards
This commit is contained in:
commit
cfb2219ded
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user