Specify that subresources excluded from mutating webhook example

This commit is contained in:
Richard Tweed 2023-02-06 22:33:00 +00:00
parent a9d7e2bca7
commit 68b19b6f00
1 changed files with 1 additions and 1 deletions

View File

@ -591,7 +591,7 @@ is not considered to match.
Use the object selector only if the webhook is opt-in, because end users may skip
the admission webhook by setting the labels.
This example shows a mutating webhook that would match a `CREATE` of any resource with the label `foo: bar`:
This example shows a mutating webhook that would match a `CREATE` of any resource (but not subresources) with the label `foo: bar`:
```yaml
apiVersion: admissionregistration.k8s.io/v1