fix(deployment): extend arguments
This commit is contained in:
parent
be0e152de8
commit
6c30756f8d
@ -24,6 +24,7 @@ spec:
|
||||
- name: postgres-exporter
|
||||
args:
|
||||
- "--config.file=/etc/prometheus-postgres-exporter/config.d/exporterConfig.yaml"
|
||||
- "--web.config.file=/etc/prometheus-postgres-exporter/config.d/web-config.yaml"
|
||||
- "--web.listen-address=:9187"
|
||||
{{- range .Values.deployment.postgresExporter.args }}
|
||||
- {{ . | quote }}
|
||||
|
@ -32,6 +32,27 @@ tests:
|
||||
content:
|
||||
secretRef:
|
||||
name: prometheus-postgres-exporter-unittest-database-env
|
||||
- equal:
|
||||
path: spec.template.spec.containers[0].args
|
||||
value:
|
||||
- --config.file=/etc/prometheus-postgres-exporter/config.d/exporterConfig.yaml
|
||||
- --web.config.file=/etc/prometheus-postgres-exporter/config.d/web-config.yaml
|
||||
- --web.listen-address=:9187
|
||||
|
||||
- it: Test additional arguments
|
||||
set:
|
||||
deployment.postgresExporter.args:
|
||||
- "--foo=bar"
|
||||
- "--bar=foo"
|
||||
asserts:
|
||||
- equal:
|
||||
path: spec.template.spec.containers[0].args
|
||||
value:
|
||||
- --config.file=/etc/prometheus-postgres-exporter/config.d/exporterConfig.yaml
|
||||
- --web.config.file=/etc/prometheus-postgres-exporter/config.d/web-config.yaml
|
||||
- --web.listen-address=:9187
|
||||
- --foo=bar
|
||||
- --bar=foo
|
||||
|
||||
- it: Test custom database secret
|
||||
set:
|
||||
|
Loading…
Reference in New Issue
Block a user