Skip to content

fix: respect namespaceOverride for PrometheusRule generation #562

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

tamcore
Copy link

@tamcore tamcore commented Apr 18, 2025

Currently, when the cluster chart is rendered with namespaceOverride, the generated PrometheusRule objects use .Release.Namespace for namespace filtering, which, chances are, does not correlate with the value of namespaceOverride.

As a result, the generated prometheus rules can't work, since they filter for the wrong namespace.

@tamcore tamcore requested a review from itay-grudev as a code owner April 18, 2025 16:06
@dosubot dosubot bot added size:XS This PR changes 0-9 lines, ignoring generated files. bug Something isn't working chart( cluster ) Related to the cluster chart labels Apr 18, 2025
@dosubot dosubot bot added the lgtm This PR has been approved by a maintainer label Apr 29, 2025
@itay-grudev itay-grudev reopened this Apr 29, 2025
@pborn-ionos pborn-ionos force-pushed the fix/cluster/prometheusrule-namespacing branch from 7ad63d1 to ac3a950 Compare May 9, 2025 04:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working chart( cluster ) Related to the cluster chart lgtm This PR has been approved by a maintainer size:XS This PR changes 0-9 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants