Skip to content

Commit 02d0b20

Browse files
authored
fix order of env vars - else it cannot be referred (#11)
1 parent 1ddab39 commit 02d0b20

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

charts/ibm-db2-prometheus-exporter/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name: ibm-db2-prometheus-exporter
33
description: A Helm chart for IBM DB2 prometheus exporter
44
icon: https://upload.wikimedia.org/wikipedia/commons/thumb/3/38/Prometheus_software_logo.svg/2066px-Prometheus_software_logo.svg.png
55
type: application
6-
version: 0.2.1
6+
version: 0.2.2
77
appVersion: "master"
88
maintainers:
99
- name: davidkarlsen

charts/ibm-db2-prometheus-exporter/templates/deployment.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,17 +34,17 @@ spec:
3434
optional: false
3535
{{- end }}
3636
env:
37-
- name: IBM_DB2_EXPORTER_DB
38-
value: {{ .Values.db2.database | quote }}
39-
- name: IBM_DB2_EXPORTER_DSN
40-
value: "DATABASE={{ .Values.db2.database }};HOSTNAME={{ .Values.db2.hostname }};PORT={{ .Values.db2.port }};UID={{ .Values.db2.userId }};PWD=$(DB2PASSWORD);"
4137
{{- if .Values.db2.instanceSecret }}
4238
- name: DB2PASSWORD
4339
valueFrom:
4440
secretKeyRef:
4541
name: {{ .Values.db2.instanceSecret }}
4642
key: password
4743
{{- end }}
44+
- name: IBM_DB2_EXPORTER_DB
45+
value: {{ .Values.db2.database | quote }}
46+
- name: IBM_DB2_EXPORTER_DSN
47+
value: "DATABASE={{ .Values.db2.database }};HOSTNAME={{ .Values.db2.hostname }};PORT={{ .Values.db2.port }};UID={{ .Values.db2.userId }};PWD=$(DB2PASSWORD);"
4848
args:
4949
{{- toYaml .Values.args | nindent 10 }}
5050
ports:

0 commit comments

Comments
 (0)