mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-29 14:37:00 +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, ""))
|
allErrors = append(allErrors, field.Required(fldPath, ""))
|
||||||
}
|
}
|
||||||
|
|
||||||
// */x
|
|
||||||
resourcesWithWildcardSubresoures := sets.String{}
|
|
||||||
// x/*
|
// x/*
|
||||||
|
resourcesWithWildcardSubresoures := sets.String{}
|
||||||
|
// */x
|
||||||
subResourcesWithWildcardResource := sets.String{}
|
subResourcesWithWildcardResource := sets.String{}
|
||||||
// */*
|
// */*
|
||||||
hasDoubleWildcard := false
|
hasDoubleWildcard := false
|
||||||
|
Loading…
Reference in New Issue
Block a user