This commit is contained in:
2025-03-10 12:16:07 +01:00
parent d3a797ed11
commit 5e8de87c5d
2 changed files with 53 additions and 3 deletions

View File

@@ -109,10 +109,37 @@ spec:
value: '{{ .Values.mariadb.loglevel }}'
- name: TZ
value: '{{ .Values.librebooking.TZ }}'
{{- with .Values.volumes }}
volumes:
{{- toYaml . | nindent 8 }}
- name: storage
{{- if .Values.persistence.enabled }}
persistentVolumeClaim:
claimName: {{ .Values.persistence.existingClaim | default (include "librebooking.fullname" .) }}
{{- else }}
emptyDir: {}
{{- end -}}
{{- range .Values.librebooking.extraVolumeMounts }}
- name: {{ .name }}
{{- if .existingClaim }}
persistentVolumeClaim:
claimName: {{ .existingClaim }}
{{- else if .hostPath }}
hostPath:
path: {{ .hostPath }}
{{- else if .configMap }}
configMap:
name: {{ .configMap }}
{{- with .items }}
items:
{{- toYaml . | nindent 14 }}
{{- end }}
{{- else }}
emptyDir: {}
{{- end }}
{{- end }}
{{- range .Values.librebooking.extraEmptyDirMounts }}
- name: {{ .name }}
emptyDir: {}
{{- end -}}
{{- with .Values.nodeSelector }}
nodeSelector:
{{- toYaml . | nindent 8 }}