[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 2026-03-30 20:04:36 +02:00 committed by GitHub
commit 4d92b6362b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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 }}