mirror of
https://github.com/rustfs/rustfs.git
synced 2026-08-15 01:23:12 +00:00
feat: add support for pvc customized annotations (#2412)
This commit is contained in:
@@ -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:
|
||||
|
||||
@@ -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 }}
|
||||
|
||||
@@ -264,6 +264,10 @@ storageclass:
|
||||
name: local-path
|
||||
dataStorageSize: 256Mi
|
||||
logStorageSize: 256Mi
|
||||
pvcAnnotations: {}
|
||||
# pvcAnnotations:
|
||||
# - name: team
|
||||
# value: "RustFS"
|
||||
|
||||
pdb:
|
||||
create: false
|
||||
|
||||
Reference in New Issue
Block a user