diff --git a/kubernetes/app-of-apps/templates/template-helm.yaml b/kubernetes/app-of-apps/templates/template-helm.yaml index c358508..a474697 100644 --- a/kubernetes/app-of-apps/templates/template-helm.yaml +++ b/kubernetes/app-of-apps/templates/template-helm.yaml @@ -4,6 +4,8 @@ kind: Application metadata: name: {{ $chart.name }} namespace: argocd + finalizers: + - resources-finalizer.argocd.argoproj.io annotations: argocd.argoproj.io/sync-options: Prune=true argocd.argoproj.io/sync-wave: "{{ $chart.sync_wave | default 0 | toString }}" diff --git a/kubernetes/app-of-apps/templates/template-manifests.yaml b/kubernetes/app-of-apps/templates/template-manifests.yaml index d5f8869..7242bd9 100644 --- a/kubernetes/app-of-apps/templates/template-manifests.yaml +++ b/kubernetes/app-of-apps/templates/template-manifests.yaml @@ -4,6 +4,8 @@ kind: Application metadata: name: {{ $manifest.name }} namespace: argocd + finalizers: + - resources-finalizer.argocd.argoproj.io annotations: argocd.argoproj.io/sync-options: Prune=true argocd.argoproj.io/sync-wave: "{{ $manifest.sync_wave | default 0 | toString }}"