From ab0b655ccd5321bc1e4ce392e2ef2e52ab69d0d6 Mon Sep 17 00:00:00 2001 From: Balaji Date: Mon, 25 Mar 2024 22:25:53 -0700 Subject: [PATCH] Update volumes.md Update as per the suggestion. --- content/en/docs/concepts/storage/volumes.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/content/en/docs/concepts/storage/volumes.md b/content/en/docs/concepts/storage/volumes.md index e5bbfebb00..a8f0fb2d34 100644 --- a/content/en/docs/concepts/storage/volumes.md +++ b/content/en/docs/concepts/storage/volumes.md @@ -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))`.