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 }}