mirror of
https://github.com/helm/charts.git
synced 2026-08-29 12:17:47 +00:00
* [stable/prometheus-postgres-exporter] Allow to specify secret for database password Signed-off-by: Vasily Angapov <angapov@gmail.com> * Fix templates/_helpers.tpl: add template quotation Signed-off-by: Vasily Angapov <angapov@gmail.com> * Fix database password env in deployment Signed-off-by: Vasily Angapov <angapov@gmail.com>
15 lines
461 B
YAML
15 lines
461 B
YAML
{{- if .Values.config.datasource.password -}}
|
|
apiVersion: v1
|
|
kind: Secret
|
|
metadata:
|
|
name: {{ template "prometheus-postgres-exporter.fullname" . }}
|
|
labels:
|
|
app: {{ template "prometheus-postgres-exporter.name" . }}
|
|
chart: {{ template "prometheus-postgres-exporter.chart" . }}
|
|
heritage: {{ .Release.Service }}
|
|
release: {{ .Release.Name }}
|
|
type: Opaque
|
|
data:
|
|
data_source_password: {{ .Values.config.datasource.password | b64enc }}
|
|
{{- end -}}
|