github.com/argoproj/argo-cd/v3@v3.2.1/resource_customizations/batch/CronJob/actions/testdata/job.yaml (about)

     1  - k8sOperation: create
     2    unstructuredObj:
     3      apiVersion: batch/v1
     4      kind: Job
     5      metadata:
     6        ownerReferences:
     7          - apiVersion: batch/v1
     8            blockOwnerDeletion: true
     9            controller: true
    10            kind: CronJob
    11            name: hello
    12            uid: '123'
    13        name: hello-00000000000
    14        namespace: test-ns
    15        labels:
    16          my: label
    17        annotations:
    18          cronjob.kubernetes.io/instantiate: manual
    19          my: annotation
    20      spec:
    21        ttlSecondsAfterFinished: 100
    22        template:
    23          metadata:
    24            labels:
    25              pod: label
    26            annotations:
    27              pod: annotation
    28          spec:
    29            containers:
    30              - name: hello
    31                image: busybox:1.28
    32                imagePullPolicy: IfNotPresent
    33                command:
    34                  - /bin/sh
    35                  - -c
    36                  - date; echo Hello from the Kubernetes cluster
    37            restartPolicy: OnFailure