Browse Source

Helm chart - volume statefulset - volumeClaimTemplates - add apiVersion and kind for better compatibility with argocd (#6793)

master
Piotr Sawicki 2 days ago
committed by GitHub
parent
commit
372547e332
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
  1. 12
      k8s/charts/seaweedfs/templates/volume-statefulset.yaml

12
k8s/charts/seaweedfs/templates/volume-statefulset.yaml

@ -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:

Loading…
Cancel
Save