1
0
Fork 0
mirror of https://github.com/kyverno/kyverno.git synced 2025-03-23 16:20:40 +00:00
kyverno/test/conformance/chainsaw/validating-policies/autogen/autogen-deployments-cronjobs/good-deployment.yaml
Mohd Kamaal 19b816ba70
solves the cronjob autogen nested path issue (#12383)
* solves the cronjob autogen nested path issue

Signed-off-by: Mohd Kamaal <mohdkamaal2019@gmail.com>

* format the file using linter

Signed-off-by: Mohd Kamaal <mohdkamaal2019@gmail.com>

* autogen path change in validating-polcies

Signed-off-by: Mohd Kamaal <mohdcode@MBA.local>

---------

Signed-off-by: Mohd Kamaal <mohdkamaal2019@gmail.com>
Signed-off-by: Mohd Kamaal <mohdcode@MBA.local>
Co-authored-by: Mohd Kamaal <mohdcode@MBA.local>
2025-03-13 14:22:51 +00:00

48 lines
947 B
YAML

apiVersion: apps/v1
kind: Deployment
metadata:
name: good-deployment-1
labels:
prod: "true"
app: good-nginx
spec:
replicas: 1
selector:
matchLabels:
prod: "true"
app: good-nginx
template:
metadata:
labels:
prod: "true"
app: good-nginx
spec:
containers:
- name: nginx
image: nginx:latest
securityContext:
allowPrivilegeEscalation: false
---
apiVersion: batch/v1
kind: CronJob
metadata:
name: good-cronjob
spec:
schedule: "*/5 * * * *"
jobTemplate:
metadata:
labels:
prod: "true"
spec:
template:
metadata:
labels:
prod: "true"
spec:
containers:
- name: secure-container
image: busybox
command: ["echo", "Hello, world"]
securityContext:
allowPrivilegeEscalation: false
restartPolicy: OnFailure