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
+2 -1
View File
@@ -47,7 +47,7 @@ RustFS helm chart supports **standalone and distributed mode**. For standalone m
| config.rustfs.obs_endpoint.logs.endpoint | string | `""` | Remote endpoint url for logs. |
| config.rustfs.obs_endpoint.profiling.enabled | bool | `false` | Whether to send profiling to remote endpoint. |
| config.rustfs.obs_endpoint.profiling.endpoint | string | `""` | Remote endpoint url for profiling. |
| extraEnv | list | `[]` | Extra environment variables for RustFS container. |
| extraEnv | map | `[]` | Extra environment variables for RustFS container. |
| containerSecurityContext.capabilities.drop[0] | string | `"ALL"` | |
| containerSecurityContext.readOnlyRootFilesystem | bool | `true` | |
| containerSecurityContext.runAsNonRoot | bool | `true` | |
@@ -133,6 +133,7 @@ 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. |
| tolerations | list | `[]` | |
| gatewayApi.enabled | bool | `false` | To enable/disable gateway api support. |
| gatewayApi.gatewayClass | string | `traefik` | Gateway class implementation. |
+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