Skip to content

Instantly share code, notes, and snippets.

@mdrakiburrahman
Last active July 1, 2022 23:53
Show Gist options
  • Save mdrakiburrahman/335d5b12f054a12233ed7a3e6f699095 to your computer and use it in GitHub Desktop.
Save mdrakiburrahman/335d5b12f054a12233ed7a3e6f699095 to your computer and use it in GitHub Desktop.
ArgoCD Hook Health issue
apiVersion: v1
kind: Namespace
metadata:
annotations:
argocd.argoproj.io/sync-wave: "-1"
name: single-job-hook-no
---
apiVersion: v1
data:
password: aGVsbG8K
username: aGVsbG8K
kind: Secret
metadata:
name: regular-secret
type: Opaque
---
apiVersion: batch/v1
kind: Job
metadata:
name: regular-job-no-hook
spec:
template:
spec:
containers:
- command:
- sleep
- "10"
image: nginxinc/nginx-unprivileged
name: job
restartPolicy: Never
apiVersion: v1
kind: Namespace
metadata:
annotations:
argocd.argoproj.io/sync-wave: "-1"
name: single-job-hook-yes
---
apiVersion: v1
data:
password: aGVsbG8K
username: aGVsbG8K
kind: Secret
metadata:
name: regular-secret
type: Opaque
---
apiVersion: batch/v1
kind: Job
metadata:
annotations:
argocd.argoproj.io/hook: Sync
argocd.argoproj.io/hook-delete-policy: HookSucceeded
name: regular-job-no-hook
spec:
template:
spec:
containers:
- command:
- sleep
- "10"
image: nginxinc/nginx-unprivileged
name: job
restartPolicy: Never
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment