diff --git a/content/en/docs/concepts/storage/volumes.md b/content/en/docs/concepts/storage/volumes.md index e22f79c1bb..bd0f40b955 100644 --- a/content/en/docs/concepts/storage/volumes.md +++ b/content/en/docs/concepts/storage/volumes.md @@ -325,7 +325,7 @@ You can restrict the use of `gitRepo` volumes in your cluster using [ValidatingAdmissionPolicy](/docs/reference/access-authn-authz/validating-admission-policy/). 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))`. +`!has(object.spec.volumes) || !object.spec.volumes.exists(v, has(v.gitRepo))`. {{< /warning >}}