refactor(charts): BREAKING CHANGE (#2836)
* Update Apps with new Common version * Patch with the secret fixes from common * fix amd
This commit is contained in:
@@ -1,17 +1,5 @@
|
||||
{{/* Make sure all variables are set properly */}}
|
||||
{{- include "common.setup" . }}
|
||||
|
||||
{{/* Append the configMap volume to the volumes */}}
|
||||
{{- define "mosquitto.configVolume" -}}
|
||||
enabled: "true"
|
||||
mountPath: "/mosquitto/config/mosquitto.conf"
|
||||
subPath: "mosquitto.conf"
|
||||
type: "custom"
|
||||
volumeSpec:
|
||||
configMap:
|
||||
name: {{ template "common.names.fullname" . }}-config
|
||||
{{- end -}}
|
||||
{{- $_ := set .Values.persistence "mosquitto-config" (include "mosquitto.configVolume" . | fromYaml) -}}
|
||||
{{- include "tc.common.loader.init" . }}
|
||||
|
||||
{{/* Render the templates */}}
|
||||
{{ include "common.postSetup" . }}
|
||||
{{ include "tc.common.loader.apply" . }}
|
||||
|
||||
@@ -1,22 +0,0 @@
|
||||
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.main.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 }}
|
||||
Reference in New Issue
Block a user