mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-09-18 23:39:30 +00:00
tests: add test for cron job support
Add simple test for cron job support Signed-off-by: Saul Paredes <saulparedes@microsoft.com>
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
apiVersion: batch/v1
|
||||
kind: CronJob
|
||||
metadata:
|
||||
name: cron-job-pi-test
|
||||
spec:
|
||||
schedule: "* * * * *"
|
||||
jobTemplate:
|
||||
spec:
|
||||
template:
|
||||
spec:
|
||||
containers:
|
||||
- name: pi
|
||||
image: quay.io/prometheus/busybox:latest
|
||||
command: ["/bin/sh", "-c", "echo 'scale=5; 4*a(1)' | bc -l"]
|
||||
restartPolicy: OnFailure
|
Reference in New Issue
Block a user