mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2024-01-19 02:48:24 +00:00
fix issue where filer PVC created even if using existingClaim
This commit is contained in:
parent
8ba2bffdba
commit
4278e9879f
|
@ -314,7 +314,7 @@ spec:
|
||||||
nodeSelector:
|
nodeSelector:
|
||||||
{{ tpl .Values.filer.nodeSelector . | indent 8 | trim }}
|
{{ tpl .Values.filer.nodeSelector . | indent 8 | trim }}
|
||||||
{{- end }}
|
{{- 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
|
# DEPRECATION: Deprecate in favor of filer.data section below
|
||||||
volumeClaimTemplates:
|
volumeClaimTemplates:
|
||||||
- metadata:
|
- metadata:
|
||||||
|
@ -332,7 +332,7 @@ spec:
|
||||||
{{- $pvc_exists := include "filer.pvc_exists" . -}}
|
{{- $pvc_exists := include "filer.pvc_exists" . -}}
|
||||||
{{- if $pvc_exists }}
|
{{- if $pvc_exists }}
|
||||||
volumeClaimTemplates:
|
volumeClaimTemplates:
|
||||||
{{- if eq .Values.filer.data.type "persistentVolumeClaim"}}
|
{{- if eq .Values.filer.data.type "persistentVolumeClaim" }}
|
||||||
- metadata:
|
- metadata:
|
||||||
name: data-filer
|
name: data-filer
|
||||||
{{- with .Values.filer.data.annotations }}
|
{{- with .Values.filer.data.annotations }}
|
||||||
|
@ -346,7 +346,7 @@ spec:
|
||||||
requests:
|
requests:
|
||||||
storage: {{ .Values.filer.data.size }}
|
storage: {{ .Values.filer.data.size }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- if eq .Values.filer.logs.type "persistentVolumeClaim"}}
|
{{- if eq .Values.filer.logs.type "persistentVolumeClaim" }}
|
||||||
- metadata:
|
- metadata:
|
||||||
name: seaweedfs-filer-log-volume
|
name: seaweedfs-filer-log-volume
|
||||||
{{- with .Values.filer.logs.annotations }}
|
{{- with .Values.filer.logs.annotations }}
|
||||||
|
|
Loading…
Reference in a new issue