Order database egress before migration hooks

This commit is contained in:
Jason A
2026-09-29 18:54:52 -04:00
parent 6911033e31
commit 98240ef96e
2 changed files with 6 additions and 5 deletions
@@ -7,7 +7,7 @@ metadata:
labels: labels:
app.kubernetes.io/part-of: aevolution app.kubernetes.io/part-of: aevolution
annotations: annotations:
argocd.argoproj.io/sync-wave: "-1" argocd.argoproj.io/sync-wave: "-2"
spec: spec:
podSelector: podSelector:
matchExpressions: matchExpressions:
@@ -1,6 +1,6 @@
# PreSync hook: every sync of the environment first migrates its database with the # Sync hook: the database-egress policy is applied at wave -2, then every sync
# migrator login (version pin and runtime privilege audit included); a failure # migrates its database with the migrator login at wave -1; a failure stops the
# stops the sync before anything else changes. # remaining workload sync.
apiVersion: batch/v1 apiVersion: batch/v1
kind: Job kind: Job
metadata: metadata:
@@ -9,7 +9,8 @@ metadata:
app.kubernetes.io/part-of: aevolution app.kubernetes.io/part-of: aevolution
app.kubernetes.io/component: migrate app.kubernetes.io/component: migrate
annotations: annotations:
argocd.argoproj.io/hook: PreSync argocd.argoproj.io/hook: Sync
argocd.argoproj.io/sync-wave: "-1"
argocd.argoproj.io/hook-delete-policy: BeforeHookCreation argocd.argoproj.io/hook-delete-policy: BeforeHookCreation
spec: spec:
backoffLimit: 0 backoffLimit: 0