github.com/datreeio/datree@v1.9.22-rc/pkg/policy/tests/8/pass/8-pass.yaml (about)

     1  apiVersion: batch/v1
     2  kind: CronJob
     3  metadata:
     4    name: hello
     5  spec:
     6    schedule: "*/1 * * * *"
     7    jobTemplate:
     8      spec:
     9        template:
    10          spec:
    11            containers:
    12            - name: hello
    13              image: busybox
    14              imagePullPolicy: IfNotPresent
    15              command:
    16              - /bin/sh
    17              - -c
    18              - date; echo Hello from the Kubernetes cluster
    19            restartPolicy: OnFailure