mirror of
https://github.com/wahyd4/helm-charts.git
synced 2026-08-09 04:26:02 +10:00
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:
@@ -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/
|
||||
|
||||
Reference in New Issue
Block a user