Order database egress before migration hooks
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user