1
0
Fork 0
mirror of https://github.com/kyverno/kyverno.git synced 2025-03-22 15:50:36 +00:00
kyverno/test/conformance/chainsaw/validating-policies/report-message-exp/deployment.yaml
Mohd Kamaal be974e7d93
chainsaw test to check messageExpression interpolation (#12415)
Signed-off-by: Mohd Kamaal <mohdkamaal2019@gmail.com>
Co-authored-by: Vishal Choudhary <vishal.choudhary@nirmata.com>
Co-authored-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com>
2025-03-17 14:06:12 +00:00

62 lines
No EOL
937 B
YAML

apiVersion: apps/v1
kind: Deployment
metadata:
name: bad-deployment
labels:
app: nginx
env: testing
spec:
replicas: 1
selector:
matchLabels:
app: nginx
template:
metadata:
labels:
app: nginx
spec:
containers:
- name: nginx
image: nginx:latest
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: no-env
labels:
app: nginx
spec:
replicas: 1
selector:
matchLabels:
app: nginx
template:
metadata:
labels:
app: nginx
spec:
containers:
- name: nginx
image: nginx:latest
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: good-deployment
labels:
app: nginx
env: prod
spec:
replicas: 1
selector:
matchLabels:
app: nginx
template:
metadata:
labels:
app: nginx
env: prod
spec:
containers:
- name: nginx
image: nginx:latest