Skip to content

Commit 3ddf261

Browse files
committed
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.
1 parent 48b4d9a commit 3ddf261

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

templates/policies/application-policies.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,9 @@ spec:
2020
metadata:
2121
name: {{ .name }}-clustergroup-config
2222
spec:
23+
{{- if or ($.Values.global.deletePattern | eq "DeleteChildApps" ) ($.Values.global.deletePattern | eq "DeleteSpokeChildApps" )}}
2324
pruneObjectBehavior: DeleteIfCreated
25+
{{- end }}
2426
remediationAction: enforce
2527
severity: medium
2628
namespaceSelector:

0 commit comments

Comments
 (0)