fix(zigbee2mqtt): Remove configmap and provide questions for basic setup to get up and running (#2225)

* fix(zigbee2mqtt): fix data path

* without quotes test

* no quote

* quote data

* try auto

* rofs

* rofs

* test other path

* hmm

* don't use configmap

* usb

* use minimal config

* update questions

* skip
This commit is contained in:
Stavros Kois
2022-03-20 14:02:58 +02:00
committed by GitHub
parent e90db31239
commit 0b5e6d952b
6 changed files with 29 additions and 117 deletions
@@ -1,17 +1,5 @@
{{/* Make sure all variables are set properly */}}
{{- include "common.setup" . }}
{{/* Append the configMap volume to the volumes */}}
{{- define "zigbee2mqtt.settingsVolume" -}}
enabled: "true"
mountPath: "/app/configuration.yaml"
subPath: "configuration.yaml"
type: "custom"
volumeSpec:
configMap:
name: {{ include "common.names.fullname" . }}-settings
{{- end -}}
{{- $_ := set .Values.persistence "zigbee2mqtt-settings" (include "zigbee2mqtt.settingsVolume" . | fromYaml) -}}
{{/* Render the templates */}}
{{ include "common.postSetup" . }}
@@ -1,11 +0,0 @@
apiVersion: v1
kind: ConfigMap
metadata:
name: {{ template "common.names.fullname" . }}-settings
labels:
{{- include "common.labels" . | nindent 4 }}
data:
configuration.yaml: |
{{- with .Values.config }}
{{- toYaml . | nindent 4 }}
{{- end }}