Skip to content

Commit

Permalink
adding wave to have clean delete of argo projects and apps in reverse…
Browse files Browse the repository at this point in the history
… order

Signed-off-by: Carlos Santana <[email protected]>
  • Loading branch information
csantanapr committed Mar 21, 2023
1 parent 9175626 commit 62e3054
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ metadata:
# Finalizer that ensures that project is not deleted until it is not referenced by any application
finalizers:
- resources-finalizer.argocd.argoproj.io
annotations:
argocd.argoproj.io/sync-wave: "1"
spec:
destinations:
- namespace: {{ .Values.spec.apps.ecsdemoCrystal.namespace | default "ecsdemo-crystal" }}
Expand All @@ -28,6 +30,8 @@ metadata:
{{- toYaml .Values.labels | nindent 4 }}
finalizers:
- resources-finalizer.argocd.argoproj.io
annotations:
argocd.argoproj.io/sync-wave: "2"
spec:
project: {{ .Values.spec.apps.ecsdemoCrystal.project | default "ecsdemo-crystal" }}
destination:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ metadata:
# Finalizer that ensures that project is not deleted until it is not referenced by any application
finalizers:
- resources-finalizer.argocd.argoproj.io
annotations:
argocd.argoproj.io/sync-wave: "1"
spec:
destinations:
- namespace: {{ .Values.spec.apps.ecsdemoFrontend.namespace | default "ecsdemo-frontend" }}
Expand All @@ -28,6 +30,8 @@ metadata:
{{- toYaml .Values.labels | nindent 4 }}
finalizers:
- resources-finalizer.argocd.argoproj.io
annotations:
argocd.argoproj.io/sync-wave: "2"
spec:
project: {{ .Values.spec.apps.ecsdemoFrontend.project | default "ecsdemo-frontend" }}
destination:
Expand Down
4 changes: 4 additions & 0 deletions multi-repo/argo-app-of-apps/dev/templates/ecsdemo-nodejs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ metadata:
# Finalizer that ensures that project is not deleted until it is not referenced by any application
finalizers:
- resources-finalizer.argocd.argoproj.io
annotations:
argocd.argoproj.io/sync-wave: "1"
spec:
destinations:
- namespace: {{ .Values.spec.apps.ecsdemoNodejs.namespace | default "ecsdemo-nodejs" }}
Expand All @@ -28,6 +30,8 @@ metadata:
{{- toYaml .Values.labels | nindent 4 }}
finalizers:
- resources-finalizer.argocd.argoproj.io
annotations:
argocd.argoproj.io/sync-wave: "2"
spec:
project: {{ .Values.spec.apps.ecsdemoNodejs.project | default "ecsdemo-nodejs" }}
destination:
Expand Down

0 comments on commit 62e3054

Please sign in to comment.