1
0
Fork 0
mirror of https://github.com/kyverno/kyverno.git synced 2025-03-10 18:06:55 +00:00
kyverno/test/conformance/chainsaw/validate/e2e/lowercase-kind-crd-deprecated/chainsaw-step-01-apply-1-2.yaml
Mariam Fahmy f3c9be9d0f
chore: rename deprecated chainsaw tests (#10668)
Signed-off-by: Mariam Fahmy <mariam.fahmy@nirmata.com>
2024-07-17 04:52:38 +00:00

19 lines
368 B
YAML
Executable file

apiVersion: kyverno.io/v1
kind: ClusterPolicy
metadata:
name: test
spec:
rules:
- match:
any:
- resources:
kinds:
- acid.zalan.do/v1/postgresql
name: test-rule
validate:
message: The label app=foo is required
pattern:
metadata:
labels:
app: foo
validationFailureAction: Enforce