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

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