Update volumes.md

Update as per the suggestion.
pull/45501/head
Balaji 2024-03-25 22:25:53 -07:00
parent 7568fef262
commit ab0b655ccd
1 changed files with 1 additions and 1 deletions

View File

@ -321,7 +321,7 @@ clones the repo using Git, then mount the
You can restrict the use of `gitRepo` volumes in your cluster using
[policies](/docs/concepts/policy/) such as
[ValidatingAdmissionPolicy](/docs/reference/access-authn-authz/validating-admission-policy/).
Here is an example of a Common Expression Language (CEL) expression that you can use as
You can use the following Common Expression Language (CEL) expression as
part of a policy to reject use of `gitRepo` volumes:
`!has(object.spec.volumes) || !object.spec.volumes.exists(v, has(v.gitRepo))`.