Skip to content

Commit

Permalink
allow fsGroup values greater than zero (#1822)
Browse files Browse the repository at this point in the history
change the policy require-non-root-groups to allow fsGroup values greater than zero

Signed-off-by: Metzger, Simon <smnmtzgr@gmail.com>
  • Loading branch information
smnmtzgr committed Apr 21, 2021
1 parent b5fd235 commit 6e76fd6
Showing 1 changed file with 3 additions and 3 deletions.
Expand Up @@ -56,10 +56,10 @@ spec:
- Pod
validate:
message: >-
Changing of file system groups is not allowed. The field
spec.securityContext.fsGroup must not be defined.
Changing to root group ID is disallowed. The field
spec.securityContext.fsGroup must be empty or greater than zero.
pattern:
spec:
=(securityContext):
X(fsGroup): "*"
=(fsGroup): ">0"
{{- end -}}

0 comments on commit 6e76fd6

Please sign in to comment.