seccomp
Usage
kubectl apply -f https://raw.githubusercontent.com/open-policy-agent/gatekeeper-library/master/mutation/pod-security-policy/seccomp/samples/mutation.yaml
Mutation Examples
apiVersion: mutations.gatekeeper.sh/v1
kind: Assign
metadata:
name: k8spspseccomp
spec:
applyTo:
- groups: [""]
kinds: ["Pod"]
versions: ["v1"]
location: spec.securityContext.seccompProfile
parameters:
pathTests:
- subPath: spec.securityContext.seccompProfile
condition: MustNotExist
assign:
value:
type: RuntimeDefault