mirror of
https://github.com/kyverno/kyverno.git
synced 2025-03-10 09:56:55 +00:00
20 lines
No EOL
414 B
YAML
20 lines
No EOL
414 B
YAML
apiVersion: kyverno.io/v1
|
|
kind: ClusterPolicy
|
|
metadata:
|
|
name: background-variables-update
|
|
spec:
|
|
validationFailureAction: Audit
|
|
background: true
|
|
rules:
|
|
- name: ns-vars-userinfo
|
|
match:
|
|
any:
|
|
- resources:
|
|
kinds:
|
|
- Pod
|
|
validate:
|
|
message: The `owner` label is required for all Namespaces.
|
|
pattern:
|
|
metadata:
|
|
labels:
|
|
owner: foo |