built-in-references/Kubernetes/read-only-root-filesystem/constraint.yaml (10 lines of code) (raw):

apiVersion: constraints.gatekeeper.sh/v1beta1 kind: K8sAzureReadOnlyRootFilesystem metadata: name: psp-readonly-root-filesystem spec: match: excludedNamespaces: {{ .Values.excludedNamespaces }} kinds: - apiGroups: [""] kinds: ["Pod"]