Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[prometheus-blackbox-exporter] - Add extraConfigmapMounts to config-reloder helper template #4773

Open
wants to merge 13 commits into
base: main
Choose a base branch
from
Open
2 changes: 1 addition & 1 deletion charts/prometheus-blackbox-exporter/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
apiVersion: v2
description: Prometheus Blackbox Exporter
name: prometheus-blackbox-exporter
version: 9.1.0
version: 9.2.0
appVersion: v0.25.0
kubeVersion: ">=1.21.0-0"
home: https://github.com/prometheus/blackbox_exporter
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{{- if and .Values.config (eq .Values.configExistingSecretName "") }}
{{- if and .Values.config (or (eq .Values.configExistingSecretName "") (eq .Values.configExistingConfigMapName: ""))}}
apiVersion: v1
kind: {{ if .Values.secretConfig -}} Secret {{- else -}} ConfigMap {{- end }}
metadata:
Expand All @@ -14,3 +14,4 @@ metadata:
blackbox.yaml: |
{{ toYaml .Values.config | indent 4 }}
{{- end }}
{{- end }}
7 changes: 7 additions & 0 deletions charts/prometheus-blackbox-exporter/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,13 @@
configExistingSecretName: ""
# Store the configuration as a `Secret` instead of a `ConfigMap`, useful in case it contains sensitive data
secretConfig: false

# if the configuration is managed as configMap outside the chart,

Check failure on line 162 in charts/prometheus-blackbox-exporter/values.yaml

View workflow job for this annotation

GitHub Actions / lint-test

162:66 [trailing-spaces] trailing spaces
# provide the name of the configMap here. If secretConfig is set to true, configExistingConfigMapName will be ignored
# in favor of the config value.
configExistingConfigMapName: ""

# Manage module configuration using helm.
config:
modules:
http_2xx:
Expand Down
Loading