Added option to customize config path by setting it into values file (#983)

Signed-off-by: Cristi Vlad <vlad_crst@yahoo.com>
This commit is contained in:
Cristi Vlad
2021-05-20 12:12:28 +02:00
committed by GitHub
parent d1525b804b
commit 3ee7cdd4fd
4 changed files with 12 additions and 1 deletions
@@ -1,7 +1,7 @@
apiVersion: v1
description: Prometheus Blackbox Exporter
name: prometheus-blackbox-exporter
version: 4.11.0
version: 4.12.0
appVersion: 0.18.0
home: https://github.com/prometheus/blackbox_exporter
sources:
@@ -78,7 +78,11 @@ spec:
{{- end }}
args:
{{- if (or .Values.config .Values.configExistingSecretName) }}
{{- if .Values.configPath }}
- "--config.file={{ .Values.configPath }}"
{{- else }}
- "--config.file=/config/blackbox.yaml"
{{- end }}
{{- else }}
- "--config.file=/etc/blackbox_exporter/config.yml"
{{- end }}
@@ -89,7 +89,11 @@ spec:
{{- end }}
args:
{{- if .Values.config }}
{{- if .Values.configPath }}
- "--config.file={{ .Values.configPath }}"
{{- else }}
- "--config.file=/config/blackbox.yaml"
{{- end }}
{{- else }}
- "--config.file=/etc/blackbox_exporter/config.yml"
{{- end }}
@@ -102,6 +102,9 @@ config:
no_follow_redirects: false
preferred_ip_protocol: "ip4"
# Set custom config path, other than default /config/blackbox.yaml. If let empty, path will be "/config/blackbox.yaml"
# configPath: "/foo/bar"
extraConfigmapMounts: []
# - name: certs-configmap
# mountPath: /etc/secrets/ssl/