mirror of
https://github.com/kyverno/kyverno.git
synced 2025-03-10 09:56:55 +00:00
12 lines
300 B
YAML
12 lines
300 B
YAML
|
apiVersion: policies.kyverno.io/v1alpha1
|
||
|
kind: CELPolicyException
|
||
|
metadata:
|
||
|
name: pod-security-exception
|
||
|
spec:
|
||
|
policyRefs:
|
||
|
- name: "check-deployment-labels"
|
||
|
kind: ValidatingPolicy
|
||
|
matchConditions:
|
||
|
- name: "check-namespace"
|
||
|
expression: "object.metadata.namespace == 'test-ns'"
|
||
|
|