Skip to content

[prometheus-blackbox-exporter] adjust extraEnv handling #5722

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

Merged
merged 3 commits into from
Jun 3, 2025

Conversation

Jakob3xD
Copy link
Contributor

@Jakob3xD Jakob3xD commented Jun 2, 2025

What this PR does / why we need it

Change the extraEnv handling to cover all use cases.
The current exntraEnv and extraEnvFromSecret are limited in their use, as extraEnv always uses value and it is therefore not possible to use valueFrom to reference fields from the pod.
The extraEnvFromSecret is limited to Secrets but configMaps are also a valid source, so replacing it with a generic extraEnvFrom where both can be referenced.

As this is a braking change, the chart version gets a major bump and an entry to the README gets added.

Which issue this PR fixes

Special notes for your reviewer

Checklist

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

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.

please put the examples below the key as for the other examples in the values file

Co-authored-by: André Bauer <[email protected]>
Signed-off-by: Jakob <[email protected]>
@monotek monotek merged commit c18c870 into prometheus-community:main Jun 3, 2025
6 checks passed
@Jakob3xD Jakob3xD deleted the jh/blackbox-env branch June 4, 2025 07:48
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