Rename to simple-example and add pre-post-hook example

This commit is contained in:
Thomas Philipona
2021-03-30 12:50:01 +02:00
parent 6c8e6ca4f6
commit 349d95b6d0
8 changed files with 92 additions and 30 deletions

View File

@@ -0,0 +1,16 @@
apiVersion: batch/v1
kind: Job
metadata:
name: after
annotations:
argocd.argoproj.io/hook: PostSync
argocd.argoproj.io/hook-delete-policy: HookSucceeded
spec:
template:
spec:
containers:
- name: sleep
image: quay.io/acend/example-web-go
command: ["sleep", "10"]
restartPolicy: Never
backoffLimit: 0