add ability to pass annotations to the volumeClaimtemplate, enables k8up usage

This commit is contained in:
Max Roby
2023-11-19 11:02:23 +01:00
committed by Chris Lu
parent 08812f8f5d
commit 8ba2bffdba
4 changed files with 49 additions and 14 deletions

View File

@@ -273,6 +273,10 @@ spec:
{{- if eq .Values.master.data.type "persistentVolumeClaim"}}
- metadata:
name: data-{{ .Release.Namespace }}
{{- with .Values.master.data.annotations }}
annotations:
{{- toYaml . | nindent 10 }}
{{- end }}
spec:
accessModes: [ "ReadWriteOnce" ]
storageClassName: {{ .Values.master.data.storageClass }}
@@ -283,6 +287,10 @@ spec:
{{- if eq .Values.master.logs.type "persistentVolumeClaim"}}
- metadata:
name: seaweedfs-master-log-volume
{{- with .Values.master.logs.annotations }}
annotations:
{{- toYaml . | nindent 10 }}
{{- end }}
spec:
accessModes: [ "ReadWriteOnce" ]
storageClassName: {{ .Values.master.logs.storageClass }}