Skip to content

Commit

Permalink
add finalizer also in appset apps (#913)
Browse files Browse the repository at this point in the history
* add finalizer also in appset apps

* add finalizer also in multi-stage-app

* set resource tracking also on namespace in multi-stage app
  • Loading branch information
jkleinlercher authored Dec 12, 2024
1 parent 0ad0123 commit 7988729
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@ spec:
template:
metadata:
name: '{{`{{ .repository }}`}}'
finalizers:
- resources-finalizer.argocd.argoproj.io
spec:
project: {{ .name }}-project
sources:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ metadata:
namespace: {{ $.Release.Namespace }}
annotations:
kargo.akuity.io/authorized-stage: {{ tpl $.Values.kargoProject $ }}:{{ .name }}
finalizers:
- resources-finalizer.argocd.argoproj.io
spec:
project: {{ tpl $.Values.appProject $ }}
source:
Expand All @@ -19,6 +21,10 @@ spec:
server: https://kubernetes.default.svc
namespace: {{ $.Values.teamName }}-{{ $.Values.appName }}-{{ .name }}
syncPolicy:
managedNamespaceMetadata:
annotations:
# doesn't handle destinationNamespaceOverride yet
argocd.argoproj.io/tracking-id: {{ $.Values.appName }}-{{ .name }}:app/Namespace:{{ $.Values.teamName }}-{{ $.Values.appName }}-{{ .name }}/{{ $.Values.teamName }}-{{ $.Values.appName }}-{{ .name }}
automated:
prune: true
selfHeal: true
Expand All @@ -27,4 +33,4 @@ spec:
- CreateNamespace=true
{{- end }}
---
{{- end }}
{{- end }}

0 comments on commit 7988729

Please sign in to comment.