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 10 commits into
base: main
Choose a base branch
from

Conversation

nirmalkumar85
Copy link

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.

Checklist

  • DCO signed
  • Chart Version bumped
  • Title of the PR starts with chart name (e.g. [prometheus-couchdb-exporter])

Add support for custom ConfigMap entries.
Signed-off-by: Nirmal Ramakrishnan
<[email protected]>

Signed-off-by: Nirmal kumar Ramakrishnan <[email protected]>
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
<[email protected]>

Signed-off-by: Nirmal kumar Ramakrishnan <[email protected]>
Update chart version

Signed-off-by: Nirmal Ramakrishnan
<[email protected]>

Signed-off-by: Nirmal kumar Ramakrishnan <[email protected]>
Update chart version

Signed-off-by: Nirmal Ramakrishnan
<[email protected]>

Signed-off-by: Nirmal kumar Ramakrishnan <[email protected]>
New feature updating minor version. Addressing reviewers comments.

Signed-off-by: Nirmal Ramakrishnan
<[email protected]>

Signed-off-by: Nirmal kumar Ramakrishnan <[email protected]>
Fixing syntax error in the template. 

Signed-off-by: Nirmal Ramakrishnan
<[email protected]>

Signed-off-by: Nirmal kumar Ramakrishnan <[email protected]>
Copy link
Member

@monotek monotek left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nirmalkumar85 and others added 2 commits September 26, 2024 09:04
Add support for custom ConfigMap entries.
Signed-off-by: Nirmal Ramakrishnan
<[email protected]>
Signed-off-by: Nirmal kumar Ramakrishnan <[email protected]>

Co-authored-by: André Bauer <[email protected]>
Signed-off-by: Nirmal kumar Ramakrishnan <[email protected]>
@nirmalkumar85
Copy link
Author

Apologies @monotek. I was away for extended time due to personal reasons and not able to work on this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants