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
|
name: miniserve
|
||||||
description: A Helm chart for Kubernetes
|
description: A Helm chart for Kubernetes
|
||||||
type: application
|
type: application
|
||||||
version: 0.3.0
|
version: 0.3.1
|
||||||
|
|
||||||
appVersion: "0.24.0"
|
appVersion: "0.24.0"
|
||||||
|
|
|
@ -56,8 +56,10 @@ spec:
|
||||||
resources:
|
resources:
|
||||||
{{- toYaml .Values.resources | nindent 12 }}
|
{{- toYaml .Values.resources | nindent 12 }}
|
||||||
volumeMounts:
|
volumeMounts:
|
||||||
|
{{- if .Values.persistence.enabled }}
|
||||||
- name: "data"
|
- name: "data"
|
||||||
mountPath: "/data"
|
mountPath: "/data"
|
||||||
|
{{- end }}
|
||||||
{{- with .Values.nodeSelector }}
|
{{- with .Values.nodeSelector }}
|
||||||
nodeSelector:
|
nodeSelector:
|
||||||
{{- toYaml . | nindent 8 }}
|
{{- toYaml . | nindent 8 }}
|
||||||
|
@ -71,8 +73,8 @@ spec:
|
||||||
{{- toYaml . | nindent 8 }}
|
{{- toYaml . | nindent 8 }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
volumes:
|
volumes:
|
||||||
- name: "data"
|
|
||||||
{{- if .Values.persistence.enabled }}
|
{{- if .Values.persistence.enabled }}
|
||||||
|
- name: "data"
|
||||||
{{- if and .Values.persistence.hostPath (ne .Values.persistence.storageClass "manual" ) }}
|
{{- if and .Values.persistence.hostPath (ne .Values.persistence.storageClass "manual" ) }}
|
||||||
hostPath:
|
hostPath:
|
||||||
path: {{ .Values.persistence.hostPath }}
|
path: {{ .Values.persistence.hostPath }}
|
||||||
|
@ -80,6 +82,4 @@ spec:
|
||||||
persistentVolumeClaim:
|
persistentVolumeClaim:
|
||||||
claimName: {{ if .Values.persistence.existingClaim }}{{ .Values.persistence.existingClaim }}{{- else }}{{ template "miniserve.fullname" . }}{{- end }}
|
claimName: {{ if .Values.persistence.existingClaim }}{{ .Values.persistence.existingClaim }}{{- else }}{{ template "miniserve.fullname" . }}{{- end }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- else }}
|
|
||||||
emptyDir: {}
|
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
|
Loading…
Add table
Reference in a new issue