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:
app.kubernetes.io/part-of: aevolution
annotations:
argocd.argoproj.io/sync-wave: "-1"
argocd.argoproj.io/sync-wave: "-2"
spec:
podSelector:
matchExpressions:
@@ -1,6 +1,6 @@
# PreSync hook: every sync of the environment first migrates its database with the
# migrator login (version pin and runtime privilege audit included); a failure
# stops the sync before anything else changes.
# Sync hook: the database-egress policy is applied at wave -2, then every sync
# migrates its database with the migrator login at wave -1; a failure stops the
# remaining workload sync.
apiVersion: batch/v1
kind: Job
metadata:
@@ -9,7 +9,8 @@ metadata:
app.kubernetes.io/part-of: aevolution
app.kubernetes.io/component: migrate
annotations:
argocd.argoproj.io/hook: PreSync
argocd.argoproj.io/hook: Sync
argocd.argoproj.io/sync-wave: "-1"
argocd.argoproj.io/hook-delete-policy: BeforeHookCreation
spec:
backoffLimit: 0