Browse Source
fix: add missing apiVersion and kind in PVC templates
pull/7408/head
Guilherme Moreira Rodrigues
1 month ago
No known key found for this signature in database
GPG Key ID: 416028EE2EB7703
2 changed files with
15 additions and
5 deletions
-
k8s/charts/seaweedfs/templates/filer/filer-statefulset.yaml
-
k8s/charts/seaweedfs/templates/master/master-statefulset.yaml
|
|
|
@ -395,7 +395,9 @@ spec: |
|
|
|
{{- if and (.Values.filer.enablePVC) (eq .Values.filer.data.type "persistentVolumeClaim") }} |
|
|
|
# DEPRECATION: Deprecate in favor of filer.data section below |
|
|
|
volumeClaimTemplates: |
|
|
|
- metadata: |
|
|
|
- apiVersion: v1 |
|
|
|
kind: PersistentVolumeClaim |
|
|
|
metadata: |
|
|
|
name: data-filer |
|
|
|
spec: |
|
|
|
accessModes: |
|
|
|
@ -411,7 +413,9 @@ spec: |
|
|
|
{{- if $pvc_exists }} |
|
|
|
volumeClaimTemplates: |
|
|
|
{{- if eq .Values.filer.data.type "persistentVolumeClaim" }} |
|
|
|
- metadata: |
|
|
|
- apiVersion: v1 |
|
|
|
kind: PersistentVolumeClaim |
|
|
|
metadata: |
|
|
|
name: data-filer |
|
|
|
{{- with .Values.filer.data.annotations }} |
|
|
|
annotations: |
|
|
|
@ -425,7 +429,9 @@ spec: |
|
|
|
storage: {{ .Values.filer.data.size }} |
|
|
|
{{- end }} |
|
|
|
{{- if eq .Values.filer.logs.type "persistentVolumeClaim" }} |
|
|
|
- metadata: |
|
|
|
- apiVersion: v1 |
|
|
|
kind: PersistentVolumeClaim |
|
|
|
metadata: |
|
|
|
name: seaweedfs-filer-log-volume |
|
|
|
{{- with .Values.filer.logs.annotations }} |
|
|
|
annotations: |
|
|
|
|
|
|
|
@ -327,7 +327,9 @@ spec: |
|
|
|
{{- if $pvc_exists }} |
|
|
|
volumeClaimTemplates: |
|
|
|
{{- if eq .Values.master.data.type "persistentVolumeClaim"}} |
|
|
|
- metadata: |
|
|
|
- apiVersion: v1 |
|
|
|
kind: PersistentVolumeClaim |
|
|
|
metadata: |
|
|
|
name: data-{{ .Release.Namespace }} |
|
|
|
{{- with .Values.master.data.annotations }} |
|
|
|
annotations: |
|
|
|
@ -341,7 +343,9 @@ spec: |
|
|
|
storage: {{ .Values.master.data.size }} |
|
|
|
{{- end }} |
|
|
|
{{- if eq .Values.master.logs.type "persistentVolumeClaim"}} |
|
|
|
- metadata: |
|
|
|
- apiVersion: v1 |
|
|
|
kind: PersistentVolumeClaim |
|
|
|
metadata: |
|
|
|
name: seaweedfs-master-log-volume |
|
|
|
{{- with .Values.master.logs.annotations }} |
|
|
|
annotations: |
|
|
|
|