Files
deprecated-helm-charts/stable/parse/templates/secrets.yaml
T
Max a05ab40bdc [stable/parse] fix ingress template (#12909)
* fixed usage of non existing template function and only generating dashboard ingress if enabled

Signed-off-by: Max Enelund <max@ig4.se>

* bump chart version

Signed-off-by: Max Enelund <max@ig4.se>

* added template function for chart

Signed-off-by: Max Enelund <max@ig4.se>

* do not generate tls structure for dashboard if not enabled

Signed-off-by: Max Enelund <max@ig4.se>
2019-04-09 06:15:09 -07:00

24 lines
697 B
YAML

apiVersion: v1
kind: Secret
metadata:
name: {{ template "parse.fullname" . }}
labels:
app: {{ template "parse.name" . }}
chart: {{ template "parse.chart" . }}
release: "{{ .Release.Name }}"
heritage: "{{ .Release.Service }}"
type: Opaque
data:
{{ if .Values.server.masterKey }}
master-key: {{ .Values.server.masterKey | b64enc | quote }}
{{ else }}
master-key: {{ randAlphaNum 10 | b64enc | quote }}
{{ end }}
{{ if .Values.dashboard.enabled }}
{{ if .Values.dashboard.password }}
parse-dashboard-password: {{ .Values.dashboard.password | b64enc | quote }}
{{ else }}
parse-dashboard-password: {{ randAlphaNum 10 | b64enc | quote }}
{{ end }}
{{ end }}