Datasets:
File size: 639 Bytes
df0899b | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 | ---
id: users
title: users
---
# users
### Usage
```shell
kubectl apply -f https://raw.githubusercontent.com/open-policy-agent/gatekeeper-library/master/mutation/pod-security-policy/users/samples/mutation-supplementalGroups.yaml
```
## Mutation Examples
```yaml
apiVersion: mutations.gatekeeper.sh/v1
kind: Assign
metadata:
name: k8spspsupplementalgroups
spec:
applyTo:
- groups: [""]
kinds: ["Pod"]
versions: ["v1"]
location: "spec.securityContext.supplementalGroups"
parameters:
pathTests:
- subPath: "spec.securityContext.supplementalGroups"
condition: MustNotExist
assign:
value: [3000]
``` |