[Backport release-1.2] [platform] Prevent installed packages deletion (#2297)

# Description
Backport of #2273 to `release-1.2`.
This commit is contained in:
Andrei Kvapil authored and GitHub committed 2026-03-30 20:04:36 +02:00
commit 4d92b6362b
1 file changed
+4
@@ -13,6 +13,8 @@ apiVersion: cozystack.io/v1alpha1
kind: Package
metadata:
name: {{ $name }}
annotations:
helm.sh/resource-policy: keep
spec:
variant: {{ $variant }}
{{- if $components }}
@@ -40,6 +42,8 @@ apiVersion: cozystack.io/v1alpha1
kind: Package
metadata:
name: {{ $name }}
annotations:
helm.sh/resource-policy: keep
spec:
variant: {{ $variant }}
{{- end }}