add option for existingClaim usage to master-statefulset, fix naming in volume-statefulset

This commit is contained in:
Max Roby
2023-11-19 09:37:37 +01:00
committed by Chris Lu
parent 47095efead
commit 676bcf08d6
3 changed files with 23 additions and 3 deletions

View File

@@ -239,7 +239,7 @@ spec:
type: DirectoryOrCreate
{{- end }}
{{- if eq .Values.volume.idx.type "existingClaim" }}
- name: data
- name: idx
persistentVolumeClaim:
claimName: {{ .Values.volume.idx.claimName }}
{{- end }}
@@ -250,7 +250,7 @@ spec:
type: DirectoryOrCreate
{{- end }}
{{- if eq .Values.volume.logs.type "existingClaim" }}
- name: data
- name: logs
persistentVolumeClaim:
claimName: {{ .Values.volume.data.claimName }}
{{- end }}