From 3ddf2611b7b34ca1c741af52e204843805b3f498 Mon Sep 17 00:00:00 2001 From: Akos Eros Date: Tue, 10 Mar 2026 10:58:18 +0100 Subject: [PATCH] fix: pruneObjectBehavior We only want the prune to happen if we do the uninstall, in any other case we want the spoke clusters to be untouched for now. --- templates/policies/application-policies.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/templates/policies/application-policies.yaml b/templates/policies/application-policies.yaml index fa0725d..21eae4f 100644 --- a/templates/policies/application-policies.yaml +++ b/templates/policies/application-policies.yaml @@ -20,7 +20,9 @@ spec: metadata: name: {{ .name }}-clustergroup-config spec: + {{- if or ($.Values.global.deletePattern | eq "DeleteChildApps" ) ($.Values.global.deletePattern | eq "DeleteSpokeChildApps" )}} pruneObjectBehavior: DeleteIfCreated + {{- end }} remediationAction: enforce severity: medium namespaceSelector: