mirror of
https://github.com/prometheus-operator/kube-prometheus.git
synced 2025-08-26 08:51:33 +02:00
kube-prometheus: Fix rule label selector
This commit is contained in:
parent
7c07940cb8
commit
0610c45e13
@ -4,5 +4,6 @@ local configMap = k.core.v1.configMap;
|
||||
{
|
||||
new(namespace, ruleFiles)::
|
||||
configMap.new("prometheus-k8s-rules", ruleFiles) +
|
||||
configMap.mixin.metadata.withLabels({role: "alert-rules", prometheus: "k8s"}) +
|
||||
configMap.mixin.metadata.withNamespace(namespace)
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user