add configDB.cong support with secret
Some checks are pending
Build Helm Chart / helm-package (pull_request) Waiting to run

This commit is contained in:
2024-10-11 10:04:30 +02:00
parent e53fe5afd3
commit 25c67b5329
4 changed files with 31 additions and 2 deletions

View File

@@ -57,6 +57,9 @@ spec:
- name: fhem-data
mountPath: /opt/fhem
subPath: fhem/
- name: configdb-volume
mountPath: /opt/fhem/configDB.conf
subPath: fhem/configDB.conf
resources:
{{- toYaml .Values.resources | nindent 12 }}
env:
@@ -123,9 +126,14 @@ spec:
{{- toYaml . | nindent 8 }}
{{- end }}
volumes:
- name: fhem-data
{{- if .Values.persistence.enabled }}
- name: fhem-data
persistentVolumeClaim:
claimName: {{ include "fhem.fullname" . }}
{{- end }}
{{- if eq .Values.configtype "configDB" }}
- name: configdb-volume
secret:
secretName: {{ .Release.Name }}-db-config-secret
{{- end }}
restartPolicy: {{ .Values.restartPolicy }}