You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug a clear and concise description of what the bug is.
After PR #3883, the new resource rules are not excluded from enforcment as the PrometheusRule object uses dashes in the rule name and the excludedFromEnforcement item uses underscores. For example:
I'm not sure the appropriate fix in this case since I think the rules.names tpl item is used outside of just the enforcement definitions. Maybe the PrometheusRule objects need to use underscores, but I think Kubernetes does not allow them in object names.
When using enforcedNamespaceLabel: namespace the new split resource rules, these rules are not generated for all resources in the cluster due to the forced label.
What you expected to happen?
Resource rules work appropriately when trying to monitor a Kubernetes cluster.
How to reproduce it?
No response
Enter the changed values of values.yaml?
No response
Enter the command that you execute and failing/misfunctioning.
There is no command.
Anything else we need to know?
No response
The text was updated successfully, but these errors were encountered:
Describe the bug a clear and concise description of what the bug is.
After PR #3883, the new resource rules are not excluded from enforcment as the PrometheusRule object uses dashes in the rule name and the excludedFromEnforcement item uses underscores. For example:
I think this also applies to the prometheusRulesExcludedFromEnforce list in the Prometheus object as well. For example:
I'm not sure the appropriate fix in this case since I think the rules.names tpl item is used outside of just the enforcement definitions. Maybe the PrometheusRule objects need to use underscores, but I think Kubernetes does not allow them in object names.
What's your helm version?
version.BuildInfo{Version:"v3.12.3", GitCommit:"3a31588ad33fe3b89af5a2a54ee1d25bfe6eaa5e", GitTreeState:"clean", GoVersion:"go1.20.7"}
What's your kubectl version?
Client Version: version.Info{Major:"1", Minor:"24", GitVersion:"v1.24.17", GitCommit:"22a9682c8fe855c321be75c5faacde343f909b04", GitTreeState:"clean", BuildDate:"2023-08-23T23:44:35Z", GoVersion:"go1.20.7", Compiler:"gc", Platform:"linux/amd64"} Kustomize Version: v4.5.4 Server Version: version.Info{Major:"1", Minor:"24", GitVersion:"v1.24.17", GitCommit:"22a9682c8fe855c321be75c5faacde343f909b04", GitTreeState:"clean", BuildDate:"2023-08-23T23:37:25Z", GoVersion:"go1.20.7", Compiler:"gc", Platform:"linux/amd64"}
Which chart?
kube-prometheus-stack
What's the chart version?
55.4.0
What happened?
When using
enforcedNamespaceLabel: namespace
the new split resource rules, these rules are not generated for all resources in the cluster due to the forced label.What you expected to happen?
Resource rules work appropriately when trying to monitor a Kubernetes cluster.
How to reproduce it?
No response
Enter the changed values of values.yaml?
No response
Enter the command that you execute and failing/misfunctioning.
There is no command.
Anything else we need to know?
No response
The text was updated successfully, but these errors were encountered: