diff --git a/eks-anywhere-hybrid/Addons/Partner/Sample/manifestJob.yaml b/eks-anywhere-hybrid/Addons/Partner/Sample/manifestJob.yaml new file mode 100644 index 00000000..20e448a6 --- /dev/null +++ b/eks-anywhere-hybrid/Addons/Partner/Sample/manifestJob.yaml @@ -0,0 +1,17 @@ +apiVersion: batch/v1 +kind: Job +metadata: + name: sample-hybrid-manifestjob + namespace: default +spec: + backoffLimit: 1 + template: + spec: + containers: + - name: job + image: busybox + args: + - /bin/sh + - -c + - date; echo sleeping....; sleep 5s; exit 1; + restartPolicy: Never diff --git a/eks-anywhere-hybrid/Testers/Sample/testJob.yaml b/eks-anywhere-hybrid/Testers/Sample/testJob.yaml new file mode 100644 index 00000000..dd264965 --- /dev/null +++ b/eks-anywhere-hybrid/Testers/Sample/testJob.yaml @@ -0,0 +1,21 @@ +apiVersion: batch/v1 +kind: CronJob +metadata: + name: sample-hybrid-daily-test-cronjob + namespace: default +spec: + schedule: "10 10 * * *" + jobTemplate: + spec: + template: + spec: + containers: + - name: job + image: busybox + args: + - /bin/sh + - -c + - date; echo sleeping....; sleep 5s; exit 0; + restartPolicy: Never + successfulJobsHistoryLimit: 3 + failedJobsHistoryLimit: 1 \ No newline at end of file