From f2d79b485eeba5de44f61026bb9be2491435355e Mon Sep 17 00:00:00 2001 From: bbb4aaa <105700600+bbb4aaa@users.noreply.github.com> Date: Sat, 27 Dec 2025 20:45:43 +0800 Subject: [PATCH] fix: prevent PV/PVC deletion during rustfs uninstallation (#1279) --- helm/rustfs/templates/pvc.yaml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/helm/rustfs/templates/pvc.yaml b/helm/rustfs/templates/pvc.yaml index a50a04e9..849da8f2 100644 --- a/helm/rustfs/templates/pvc.yaml +++ b/helm/rustfs/templates/pvc.yaml @@ -2,6 +2,8 @@ apiVersion: v1 kind: PersistentVolumeClaim metadata: + annotations: + helm.sh/resource-policy: keep name: {{ include "rustfs.fullname" . }}-data labels: {{- toYaml .Values.commonLabels | nindent 4 }} @@ -16,6 +18,8 @@ spec: apiVersion: v1 kind: PersistentVolumeClaim metadata: + annotations: + helm.sh/resource-policy: keep name: {{ include "rustfs.fullname" . }}-logs labels: {{- toYaml .Values.commonLabels | nindent 4 }}