fix: add different annotations for different pvc (#2547)

This commit is contained in:
majinghe
2026-04-15 15:21:38 +08:00
committed by GitHub
parent da9dfb51e7
commit 8152c8e084
4 changed files with 12 additions and 9 deletions
+2 -1
View File
@@ -133,7 +133,8 @@ RustFS helm chart supports **standalone and distributed mode**. For standalone m
| storageclass.dataStorageSize | string | `"256Mi"` | The storage size for data PVC. |
| storageclass.logStorageSize | string | `"256Mi"` | The storage size for logs PVC. |
| storageclass.name | string | `"local-path"` | The name for StorageClass. |
| storageclass.pvcAnnotations | map | `{}` | PVC customized annotations. |
| storageclass.pvcAnnotations.data | map | `{}` | Data pvc customized annotations. |
| storageclass.pvcAnnotations.logs | map | `{}` | Logs pvc customized annotations. |
| tolerations | list | `[]` | |
| gatewayApi.enabled | bool | `false` | To enable/disable gateway api support. |
| gatewayApi.gatewayClass | string | `traefik` | Gateway class implementation. |
+2 -2
View File
@@ -5,7 +5,7 @@ kind: PersistentVolumeClaim
metadata:
annotations:
helm.sh/resource-policy: keep
{{- with .pvcAnnotations }}
{{- with .pvcAnnotations.data }}
{{- toYaml .| nindent 4 }}
{{- end }}
name: {{ include "rustfs.fullname" $ }}-data
@@ -31,7 +31,7 @@ kind: PersistentVolumeClaim
metadata:
annotations:
helm.sh/resource-policy: keep
{{- with .pvcAnnotations }}
{{- with .pvcAnnotations.logs }}
{{- toYaml .| nindent 4 }}
{{- end }}
name: {{ include "rustfs.fullname" $ }}-logs
+3 -3
View File
@@ -193,7 +193,7 @@ spec:
labels:
{{- toYaml .Values.commonLabels | nindent 10 }}
annotations:
{{- toYaml .Values.storageclass.pvcAnnotations | nindent 10 }}
{{- toYaml .Values.storageclass.pvcAnnotations.logs | nindent 10 }}
spec:
accessModes: ["ReadWriteOnce"]
storageClassName: {{ .Values.storageclass.name }}
@@ -207,7 +207,7 @@ spec:
labels:
{{- toYaml $.Values.commonLabels | nindent 10 }}
annotations:
{{- toYaml $.Values.storageclass.pvcAnnotations | nindent 10 }}
{{- toYaml $.Values.storageclass.pvcAnnotations.data | nindent 10 }}
spec:
accessModes: ["ReadWriteOnce"]
storageClassName: {{ $.Values.storageclass.name }}
@@ -221,7 +221,7 @@ spec:
labels:
{{- toYaml .Values.commonLabels | nindent 10 }}
annotations:
{{- toYaml .Values.storageclass.pvcAnnotations | nindent 10 }}
{{- toYaml .Values.storageclass.pvcAnnotations.data | nindent 10 }}
spec:
accessModes: ["ReadWriteOnce"]
storageClassName: {{ .Values.storageclass.name }}
+5 -3
View File
@@ -265,9 +265,11 @@ storageclass:
dataStorageSize: 256Mi
logStorageSize: 256Mi
pvcAnnotations: {}
# pvcAnnotations:
# - name: team
# value: "RustFS"
#pvcAnnotations:
# data:
# key: value
# logs:
# key: value
pdb:
create: false