charts/charts/stable/mosquitto/templates/configmap.yaml
Bᴇʀɴᴅ Sᴄʜᴏʀɢᴇʀs ed7e0965d3
[mosquitto] Migrate to common v3 (#957)
* [mosquitto] Upgrade to common v3

Signed-off-by: Bᴇʀɴᴅ Sᴄʜᴏʀɢᴇʀs <me@bjw-s.dev>

* Update maintainers

Signed-off-by: Bᴇʀɴᴅ Sᴄʜᴏʀɢᴇʀs <me@bjw-s.dev>
2021-06-09 19:08:40 -04:00

23 lines
660 B
YAML

apiVersion: v1
kind: ConfigMap
metadata:
name: {{ template "common.names.fullname" . }}-config
labels:
{{- include "common.labels" . | nindent 4 }}
data:
mosquitto.conf: |
listener {{ .Values.service.main.ports.mqtt.port }}
{{- if .Values.auth.enabled }}
allow_anonymous false
{{- else }}
allow_anonymous true
{{- end }}
{{- if .Values.persistence.data.enabled }}
persistence true
persistence_location {{ .Values.persistence.data.mountPath }}
autosave_interval 1800
{{- end }}
{{- if .Values.persistence.configinc.enabled }}
include_dir {{ .Values.persistence.configinc.mountPath }}
{{- end }}