feat: add support for pvc customized annotations (#2412)

This commit is contained in:
majinghe
2026-04-07 13:34:49 +08:00
committed by GitHub
parent 751bc3d737
commit 6963b898ee
4 changed files with 18 additions and 1 deletions
+6
View File
@@ -5,6 +5,9 @@ kind: PersistentVolumeClaim
metadata:
annotations:
helm.sh/resource-policy: keep
{{- with .pvcAnnotations }}
{{- toYaml .| nindent 4 }}
{{- end }}
name: {{ include "rustfs.fullname" $ }}-data
namespace: {{ $.Release.Namespace }}
labels:
@@ -28,6 +31,9 @@ kind: PersistentVolumeClaim
metadata:
annotations:
helm.sh/resource-policy: keep
{{- with .pvcAnnotations }}
{{- toYaml .| nindent 4 }}
{{- end }}
name: {{ include "rustfs.fullname" $ }}-logs
namespace: {{ $.Release.Namespace }}
labels:
+6
View File
@@ -192,6 +192,8 @@ spec:
name: logs
labels:
{{- toYaml .Values.commonLabels | nindent 10 }}
annotations:
{{- toYaml .Values.storageclass.pvcAnnotations | nindent 10 }}
spec:
accessModes: ["ReadWriteOnce"]
storageClassName: {{ .Values.storageclass.name }}
@@ -204,6 +206,8 @@ spec:
name: data-rustfs-{{ $i }}
labels:
{{- toYaml $.Values.commonLabels | nindent 10 }}
annotations:
{{- toYaml $.Values.storageclass.pvcAnnotations | nindent 10 }}
spec:
accessModes: ["ReadWriteOnce"]
storageClassName: {{ $.Values.storageclass.name }}
@@ -216,6 +220,8 @@ spec:
name: data
labels:
{{- toYaml .Values.commonLabels | nindent 10 }}
annotations:
{{- toYaml .Values.storageclass.pvcAnnotations | nindent 10 }}
spec:
accessModes: ["ReadWriteOnce"]
storageClassName: {{ .Values.storageclass.name }}
+4
View File
@@ -264,6 +264,10 @@ storageclass:
name: local-path
dataStorageSize: 256Mi
logStorageSize: 256Mi
pvcAnnotations: {}
# pvcAnnotations:
# - name: team
# value: "RustFS"
pdb:
create: false