charts/home-assistant/templates/configurator-secret.yaml
2018-08-01 23:18:07 -04:00

22 lines
711 B
YAML

apiVersion: v1
kind: Secret
metadata:
name: {{ template "home-assistant.fullname" . }}-configurator
labels:
app: {{ template "home-assistant.name" . }}
chart: {{ template "home-assistant.chart" . }}
component: configurator
release: {{ .Release.Name }}
heritage: {{ .Release.Service }}
type: Opaque
data:
{{- if .Values.configurator.hassApiPassword }}
hass-api-password: {{ .Values.configurator.hassApiPassword | b64enc | quote }}
{{- end }}
{{- if .Values.configurator.username }}
username: {{ .Values.configurator.username | b64enc | quote }}
{{- end }}
{{- if .Values.configurator.password }}
password: {{ .Values.configurator.password | b64enc | quote }}
{{- end }}