-
Notifications
You must be signed in to change notification settings - Fork 16.7k
[stable/prometheus-operator] allow empty ruleSelector and ruleNamespa… #11395
Conversation
…ceSelector Currently an empty ruleSelector or ruleNamespaceSelector does not select all PrometheusRules or Namespaces respectively. Fix the prometheus template to allow empty ruleSelector and ruleNamespaceSelector. Signed-off-by: Nick Troast <ntroast@gmail.com>
/assign @gianrubio |
@ntroast The guidelines specify that charts should select their own resources by default, and from what you are saying this chart breaks this requirement : https://github.com/helm/charts/blob/master/REVIEW_GUIDELINES.md#deployments-statefulsets-daemonsets-selectors |
@vsliouniaev Sorry, I should have been more clear. By default |
/ok-to-test |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: gianrubio, ntroast The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Your changes to the description of the behaviour of the namespace selector don't correspond to what is described in the API for prometheus operator. https://github.com/coreos/prometheus-operator/blob/master/Documentation/api.md#namespaceselector Also, pretty certain that the behaviour of |
…ceSelector
Currently an empty ruleSelector or ruleNamespaceSelector does not select
all PrometheusRules or Namespaces respectively. Fix the prometheus
template to allow empty ruleSelector and ruleNamespaceSelector.
What this PR does / why we need it:
Currently an empty ruleSelector or ruleNamespaceSelector does not select
all PrometheusRules or Namespaces respectively. Fix the prometheus
template to allow empty ruleSelector and ruleNamespaceSelector.
Special notes for your reviewer:
@gianrubio By default all ServiceMonitors and PrometheusRules in all namespaces will be selected.
Checklist
[Place an '[x]' (no spaces) in all applicable fields. Please remove unrelated fields.]