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-snmp-exporter] Allow setting environment variables via envFrom #4441

Merged
merged 2 commits into from
Apr 14, 2024

Conversation

ngc4579
Copy link
Contributor

@ngc4579 ngc4579 commented Apr 11, 2024

  • Add optional envFrom sections to DaemonSet and Deployment

@Miouge1 @xiu @walker-tom

What this PR does / why we need it

Allow setting an optional envFrom section in DaemonSet or Deployment in order to be able to inject secrets as environment variables to be expanded by the exporter.

Which issue this PR fixes

Checklist

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

- Add optional envFrom sections to DaemonSet and Deployment

Signed-off-by: Karsten Stöckmann <[email protected]>
@ngc4579 ngc4579 requested review from walker-tom and xiu as code owners April 11, 2024 17:55
Copy link
Contributor

@walker-tom walker-tom left a comment

Choose a reason for hiding this comment

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

Thanks for your PR! One quick addition then I'll approve and merge this.

charts/prometheus-snmp-exporter/values.yaml Show resolved Hide resolved
Signed-off-by: Karsten Stöckmann <[email protected]>
Copy link
Contributor

@walker-tom walker-tom left a comment

Choose a reason for hiding this comment

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

LGTM, thanks!

@walker-tom walker-tom merged commit 742559f into prometheus-community:main Apr 14, 2024
4 checks passed
@ngc4579
Copy link
Contributor Author

ngc4579 commented Apr 14, 2024

Awesome, thanks for approving. 🙂

wilfriedroset pushed a commit to wilfriedroset/helm-charts that referenced this pull request May 8, 2024
…vFrom (prometheus-community#4441)

* Allow setting environment variables

- Add optional envFrom sections to DaemonSet and Deployment

Signed-off-by: Karsten Stöckmann <[email protected]>

* Add example for envFrom

Signed-off-by: Karsten Stöckmann <[email protected]>

---------

Signed-off-by: Karsten Stöckmann <[email protected]>
Co-authored-by: Karsten Stöckmann <[email protected]>
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.

[prometheus-snmp-exporter] Allow injecting environment variables via secrets
2 participants