github.com/argoproj/argo-cd@v1.8.7/test/e2e/testdata/hook-and-deployment/hook.yaml (about)

     1  apiVersion: batch/v1
     2  kind: Job
     3  metadata:
     4    name: my-hook
     5    annotations:
     6      argocd.argoproj.io/hook: Sync
     7  spec:
     8    template:
     9      spec:
    10        containers:
    11          - command:
    12              - "true"
    13            image: "alpine:3.10.2"
    14            imagePullPolicy: IfNotPresent
    15            name: main
    16        restartPolicy: Never