charts/home-assistant/templates/configurator-secret.yaml

19 lines
641 B
YAML
Raw Normal View History

2018-07-03 03:50:38 +00:00
apiVersion: v1
kind: Secret
metadata:
name: {{ template "home-assistant.configurator.fullname" . }}
labels:
app: {{ template "home-assistant.name" . }}
chart: {{ template "home-assistant.chart" . }}
component: "{{ .Release.Name }}-{{ .Values.configurator.name }}"
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.credentials }}
credentials: {{ .Values.configurator.credentials | b64enc | quote }}
{{- end }}