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

helm: Add support to override pod monitor namespace #372

Merged
merged 1 commit into from
Feb 24, 2021

Conversation

victorboissiere
Copy link
Contributor

Description of changes

The pod monitor is only created in the Helm release namespace. The Prometheus operator by default watches pod monitors resources only in its own namespace. To watch resources in another namespace, it can be configured to use label selectors. However, in some cases, we do not want to add labels to an already existing namespace like kube-system.

This PR allows overriding the release namespace for the pod monitor. Some other Helm charts already support this feature like the pushgateway.

Testing

Forked the Helm chart and deployed it. Working as intended.
helm template output is working as well: previous release namespace and overridden namespace when the added namespace is uncommented.

Copy link
Contributor

@bwagner5 bwagner5 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!

@bwagner5 bwagner5 merged commit b60ec45 into aws:main Feb 24, 2021
haugenj pushed a commit to haugenj/aws-node-termination-handler that referenced this pull request Mar 1, 2021
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