fix(miniserve): do not create emptydir if persitence is disabled
This commit is contained in:
parent
e6c1b171db
commit
8c5c6cf3e6
2 changed files with 7 additions and 7 deletions
|
@ -2,6 +2,6 @@ apiVersion: v2
|
|||
name: miniserve
|
||||
description: A Helm chart for Kubernetes
|
||||
type: application
|
||||
version: 0.3.0
|
||||
version: 0.3.1
|
||||
|
||||
appVersion: "0.24.0"
|
||||
|
|
|
@ -56,8 +56,10 @@ spec:
|
|||
resources:
|
||||
{{- toYaml .Values.resources | nindent 12 }}
|
||||
volumeMounts:
|
||||
{{- if .Values.persistence.enabled }}
|
||||
- name: "data"
|
||||
mountPath: "/data"
|
||||
{{- end }}
|
||||
{{- with .Values.nodeSelector }}
|
||||
nodeSelector:
|
||||
{{- toYaml . | nindent 8 }}
|
||||
|
@ -71,15 +73,13 @@ spec:
|
|||
{{- toYaml . | nindent 8 }}
|
||||
{{- end }}
|
||||
volumes:
|
||||
{{- if .Values.persistence.enabled }}
|
||||
- name: "data"
|
||||
{{- if .Values.persistence.enabled }}
|
||||
{{- if and .Values.persistence.hostPath (ne .Values.persistence.storageClass "manual" ) }}
|
||||
{{- if and .Values.persistence.hostPath (ne .Values.persistence.storageClass "manual" ) }}
|
||||
hostPath:
|
||||
path: {{ .Values.persistence.hostPath }}
|
||||
{{- else }}
|
||||
{{- else }}
|
||||
persistentVolumeClaim:
|
||||
claimName: {{ if .Values.persistence.existingClaim }}{{ .Values.persistence.existingClaim }}{{- else }}{{ template "miniserve.fullname" . }}{{- end }}
|
||||
{{- end }}
|
||||
{{- else }}
|
||||
emptyDir: {}
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
|
|
Loading…
Add table
Reference in a new issue