From 4278e9879fb1d41f11a1502c4e0618bbbacb56de Mon Sep 17 00:00:00 2001 From: Max Roby Date: Sun, 19 Nov 2023 15:42:40 +0100 Subject: [PATCH] fix issue where filer PVC created even if using existingClaim --- k8s/charts/seaweedfs/templates/filer-statefulset.yaml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/k8s/charts/seaweedfs/templates/filer-statefulset.yaml b/k8s/charts/seaweedfs/templates/filer-statefulset.yaml index 515454cf0..d620a1a99 100644 --- a/k8s/charts/seaweedfs/templates/filer-statefulset.yaml +++ b/k8s/charts/seaweedfs/templates/filer-statefulset.yaml @@ -314,7 +314,7 @@ spec: nodeSelector: {{ tpl .Values.filer.nodeSelector . | indent 8 | trim }} {{- end }} - {{- if .Values.filer.enablePVC }} + {{- if and (.Values.filer.enablePVC) (eq .Values.filer.data.type "persistentVolumeClaim") }} # DEPRECATION: Deprecate in favor of filer.data section below volumeClaimTemplates: - metadata: @@ -332,7 +332,7 @@ spec: {{- $pvc_exists := include "filer.pvc_exists" . -}} {{- if $pvc_exists }} volumeClaimTemplates: - {{- if eq .Values.filer.data.type "persistentVolumeClaim"}} + {{- if eq .Values.filer.data.type "persistentVolumeClaim" }} - metadata: name: data-filer {{- with .Values.filer.data.annotations }} @@ -346,7 +346,7 @@ spec: requests: storage: {{ .Values.filer.data.size }} {{- end }} - {{- if eq .Values.filer.logs.type "persistentVolumeClaim"}} + {{- if eq .Values.filer.logs.type "persistentVolumeClaim" }} - metadata: name: seaweedfs-filer-log-volume {{- with .Values.filer.logs.annotations }}