Skip to content

Commit fc9802d

Browse files
authored
Merge pull request #48817 from DonaldKellett/fix/cel-reject-gitrepo-volumes
Fix sample CEL expression in volumes.md
2 parents 804dadb + 38e7774 commit fc9802d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

content/en/docs/concepts/storage/volumes.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -325,7 +325,7 @@ You can restrict the use of `gitRepo` volumes in your cluster using
325325
[ValidatingAdmissionPolicy](/docs/reference/access-authn-authz/validating-admission-policy/).
326326
You can use the following Common Expression Language (CEL) expression as
327327
part of a policy to reject use of `gitRepo` volumes:
328-
`has(object.spec.volumes) || !object.spec.volumes.exists(v, has(v.gitRepo))`.
328+
`!has(object.spec.volumes) || !object.spec.volumes.exists(v, has(v.gitRepo))`.
329329

330330
{{< /warning >}}
331331

0 commit comments

Comments
 (0)