From 88960ca6cbe37089de7a4259dc001d3030bc4855 Mon Sep 17 00:00:00 2001 From: Caio Gomes Date: Sun, 23 Jun 2024 11:59:23 +0300 Subject: [PATCH] Adding finalizer to resources --- kubernetes/app-of-apps/templates/template-helm.yaml | 2 ++ kubernetes/app-of-apps/templates/template-manifests.yaml | 2 ++ 2 files changed, 4 insertions(+) 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 }}"