-
Notifications
You must be signed in to change notification settings - Fork 5k
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
base: main
Are you sure you want to change the base?
[prometheus-blackbox-exporter] - Add extraConfigmapMounts to config-reloder helper template #4773
Conversation
Add support for custom ConfigMap entries. Signed-off-by: Nirmal Ramakrishnan <nirmalkumar85@gmail.com> Signed-off-by: Nirmal kumar Ramakrishnan <nirmalkumar85@gmail.com>
Set condition to create configMap using values.config (in line modules) or secret if existing configMap is set to empty. Signed-off-by: Nirmal Ramakrishnan <nirmalkumar85@gmail.com> Signed-off-by: Nirmal kumar Ramakrishnan <nirmalkumar85@gmail.com>
Update chart version Signed-off-by: Nirmal Ramakrishnan <nirmalkumar85@gmail.com> Signed-off-by: Nirmal kumar Ramakrishnan <nirmalkumar85@gmail.com>
Update chart version Signed-off-by: Nirmal Ramakrishnan <nirmalkumar85@gmail.com> Signed-off-by: Nirmal kumar Ramakrishnan <nirmalkumar85@gmail.com>
New feature updating minor version. Addressing reviewers comments. Signed-off-by: Nirmal Ramakrishnan <nirmalkumar85@gmail.com> Signed-off-by: Nirmal kumar Ramakrishnan <nirmalkumar85@gmail.com>
Fixing syntax error in the template. Signed-off-by: Nirmal Ramakrishnan <nirmalkumar85@gmail.com> Signed-off-by: Nirmal kumar Ramakrishnan <nirmalkumar85@gmail.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
what about the logic in the helpers file, like: https://github.com/prometheus-community/helm-charts/blob/main/charts/prometheus-blackbox-exporter/templates/_helpers.tpl#L291-L294 ?
Add support for custom ConfigMap entries. Signed-off-by: Nirmal Ramakrishnan <nirmalkumar85@gmail.com> Signed-off-by: Nirmal kumar Ramakrishnan <nirmalkumar85@gmail.com> Co-authored-by: André Bauer <monotek@users.noreply.github.com> Signed-off-by: Nirmal kumar Ramakrishnan <nirmalkumar85@gmail.com>
Apologies @monotek. I was away for extended time due to personal reasons and not able to work on this. |
Add support for custom ConfigMap entries. Signed-off-by: Nirmal Ramakrishnan <nirmalkumar85@gmail.com> Signed-off-by: Nirmal kumar Ramakrishnan <nirmalkumar85@gmail.com>
Signed-off-by: André Bauer <monotek@users.noreply.github.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
please fix lint
Hello @desaintmartin @gianrubio @rsotnychenko @monotek
My first contribution and thanks.
What this PR does / why we need it
Adds extraConfigmapMounts to config-reloader. This will align with the blackbox exporter where extraConfigmapMounts can be supplied.
In blackbox, a user can use a custom Configmap for blackbox configurations via extraConfigmapMount option to support use cases where configMap for blackbox modules are dynamically generated by external application and would be supplied as a custom configMap managed outside the helmchart.
While we could convert all our non-sensitive configuration to a secret, however this is an anti-pattern in cases where additional process are required to validate secrets.
The blackbox-exporter supports extraConfigmapMounts, but the config-reloader has the following problem:
The reloader will watch this path - - --config-file={{ .Values.configPath | default "/config/blackbox.yaml" }}
In blackbox, a user can use a custom configmap for modules.
The config reloader cannot watch this mount.
helm-charts/charts/prometheus-blackbox-exporter/templates/_helpers.tpl
Line 201 in 34a6212
Checklist
[prometheus-couchdb-exporter]
)