argocd-example-apps/pre-post-sync/post-sync-job.yaml

17 lines
338 B
YAML
Raw Normal View History

2018-07-09 10:20:35 +02:00
apiVersion: batch/v1
kind: Job
metadata:
2018-12-08 12:51:53 +01:00
name: after
2018-07-09 10:20:35 +02:00
annotations:
argocd.argoproj.io/hook: PostSync
argocd.argoproj.io/hook-delete-policy: HookSucceeded
2018-07-09 10:20:35 +02:00
spec:
template:
spec:
containers:
- name: sleep
image: alpine:latest
command: ["sleep", "10"]
2018-07-09 10:20:35 +02:00
restartPolicy: Never
backoffLimit: 0