diff --git a/kubernetes/blackduck/templates/postgres-config.yaml b/kubernetes/blackduck/templates/postgres-config.yaml index 06439b7..44decb0 100644 --- a/kubernetes/blackduck/templates/postgres-config.yaml +++ b/kubernetes/blackduck/templates/postgres-config.yaml @@ -19,6 +19,9 @@ metadata: helm.sh/hook: pre-install,pre-upgrade,post-upgrade helm.sh/hook-weight: "-5" helm.sh/hook-delete-policy: before-hook-creation + argocd.argoproj.io/hook: PreSync,PostSync + argocd.argoproj.io/sync-wave: "-5" + argocd.argoproj.io/hook-delete-policy: BeforeHookCreation name: {{ .Release.Name }}-blackduck-db-config namespace: {{ .Release.Namespace }} --- diff --git a/kubernetes/blackduck/templates/postgres-init.yaml b/kubernetes/blackduck/templates/postgres-init.yaml index e1593ad..7a92620 100644 --- a/kubernetes/blackduck/templates/postgres-init.yaml +++ b/kubernetes/blackduck/templates/postgres-init.yaml @@ -12,6 +12,9 @@ metadata: helm.sh/hook: pre-install helm.sh/hook-weight: "-5" helm.sh/hook-delete-policy: before-hook-creation + argocd.argoproj.io/hook: PreSync + argocd.argoproj.io/sync-wave: "-5" + argocd.argoproj.io/hook-delete-policy: BeforeHookCreation name: {{ .Release.Name }}-blackduck-postgres-init-config namespace: {{ .Release.Namespace }} {{ if eq .Values.status "Running" }}