github.com/argoproj/argo-cd/v2@v2.10.9/resource_customizations/batch/CronJob/actions/testdata/cronjob.yaml (about) 1 apiVersion: batch/v1 2 kind: CronJob 3 metadata: 4 name: hello 5 namespace: test-ns 6 uid: "123" 7 spec: 8 schedule: "* * * * *" 9 jobTemplate: 10 metadata: 11 labels: 12 my: label 13 annotations: 14 my: annotation 15 spec: 16 ttlSecondsAfterFinished: 100 17 template: 18 metadata: 19 labels: 20 pod: label 21 annotations: 22 pod: annotation 23 spec: 24 containers: 25 - name: hello 26 image: busybox:1.28 27 imagePullPolicy: IfNotPresent 28 command: 29 - /bin/sh 30 - -c 31 - date; echo Hello from the Kubernetes cluster 32 resources: {} 33 restartPolicy: OnFailure