Helm chart - volume statefulset - volumeClaimTemplates - add apiVersion and kind for better compatibility with argocd (#6793)
This commit is contained in:
@@ -351,7 +351,9 @@ spec:
|
|||||||
volumeClaimTemplates:
|
volumeClaimTemplates:
|
||||||
{{- range $dir := .Values.volume.dataDirs }}
|
{{- range $dir := .Values.volume.dataDirs }}
|
||||||
{{- if eq $dir.type "persistentVolumeClaim" }}
|
{{- if eq $dir.type "persistentVolumeClaim" }}
|
||||||
- metadata:
|
- apiVersion: v1
|
||||||
|
kind: PersistentVolumeClaim
|
||||||
|
metadata:
|
||||||
name: {{ $dir.name }}
|
name: {{ $dir.name }}
|
||||||
{{- with $dir.annotations }}
|
{{- with $dir.annotations }}
|
||||||
annotations:
|
annotations:
|
||||||
@@ -367,7 +369,9 @@ spec:
|
|||||||
{{- end }}
|
{{- end }}
|
||||||
|
|
||||||
{{- if and .Values.volume.idx (eq .Values.volume.idx.type "persistentVolumeClaim") }}
|
{{- if and .Values.volume.idx (eq .Values.volume.idx.type "persistentVolumeClaim") }}
|
||||||
- metadata:
|
- apiVersion: v1
|
||||||
|
kind: PersistentVolumeClaim
|
||||||
|
metadata:
|
||||||
name: idx
|
name: idx
|
||||||
{{- with .Values.volume.idx.annotations }}
|
{{- with .Values.volume.idx.annotations }}
|
||||||
annotations:
|
annotations:
|
||||||
@@ -381,7 +385,9 @@ spec:
|
|||||||
storage: {{ .Values.volume.idx.size }}
|
storage: {{ .Values.volume.idx.size }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- if and .Values.volume.logs (eq .Values.volume.logs.type "persistentVolumeClaim") }}
|
{{- if and .Values.volume.logs (eq .Values.volume.logs.type "persistentVolumeClaim") }}
|
||||||
- metadata:
|
- apiVersion: v1
|
||||||
|
kind: PersistentVolumeClaim
|
||||||
|
metadata:
|
||||||
name: logs
|
name: logs
|
||||||
{{- with .Values.volume.logs.annotations }}
|
{{- with .Values.volume.logs.annotations }}
|
||||||
annotations:
|
annotations:
|
||||||
|
|||||||
Reference in New Issue
Block a user