built-in-references/Kubernetes/container-no-privilege-escalation/constraint.yaml (10 lines of code) (raw):
apiVersion: constraints.gatekeeper.sh/v1beta1
kind: K8sAzureContainerNoPrivilegeEscalation
metadata:
name: psp-container-no-privilege-escalation
spec:
match:
excludedNamespaces: {{ .Values.excludedNamespaces }}
kinds:
- apiGroups: [""]
kinds: ["Pod"]