Browse Source
Helm chart - volume statefulset - volumeClaimTemplates - add apiVersion and kind for better compatibility with argocd (#6793)
master
Piotr Sawicki
3 days ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with
9 additions and
3 deletions
-
k8s/charts/seaweedfs/templates/volume-statefulset.yaml
|
|
@ -351,7 +351,9 @@ spec: |
|
|
|
volumeClaimTemplates: |
|
|
|
{{- range $dir := .Values.volume.dataDirs }} |
|
|
|
{{- if eq $dir.type "persistentVolumeClaim" }} |
|
|
|
- metadata: |
|
|
|
- apiVersion: v1 |
|
|
|
kind: PersistentVolumeClaim |
|
|
|
metadata: |
|
|
|
name: {{ $dir.name }} |
|
|
|
{{- with $dir.annotations }} |
|
|
|
annotations: |
|
|
@ -367,7 +369,9 @@ spec: |
|
|
|
{{- end }} |
|
|
|
|
|
|
|
{{- if and .Values.volume.idx (eq .Values.volume.idx.type "persistentVolumeClaim") }} |
|
|
|
- metadata: |
|
|
|
- apiVersion: v1 |
|
|
|
kind: PersistentVolumeClaim |
|
|
|
metadata: |
|
|
|
name: idx |
|
|
|
{{- with .Values.volume.idx.annotations }} |
|
|
|
annotations: |
|
|
@ -381,7 +385,9 @@ spec: |
|
|
|
storage: {{ .Values.volume.idx.size }} |
|
|
|
{{- end }} |
|
|
|
{{- if and .Values.volume.logs (eq .Values.volume.logs.type "persistentVolumeClaim") }} |
|
|
|
- metadata: |
|
|
|
- apiVersion: v1 |
|
|
|
kind: PersistentVolumeClaim |
|
|
|
metadata: |
|
|
|
name: logs |
|
|
|
{{- with .Values.volume.logs.annotations }} |
|
|
|
annotations: |
|
|
|