Skip to content
Snippets Groups Projects
Commit 0610c45e authored by Frederic Branczyk's avatar Frederic Branczyk
Browse files

kube-prometheus: Fix rule label selector

parent 7c07940c
No related branches found
No related tags found
No related merge requests found
...@@ -4,5 +4,6 @@ local configMap = k.core.v1.configMap; ...@@ -4,5 +4,6 @@ local configMap = k.core.v1.configMap;
{ {
new(namespace, ruleFiles):: new(namespace, ruleFiles)::
configMap.new("prometheus-k8s-rules", ruleFiles) + configMap.new("prometheus-k8s-rules", ruleFiles) +
configMap.mixin.metadata.withLabels({role: "alert-rules", prometheus: "k8s"}) +
configMap.mixin.metadata.withNamespace(namespace) configMap.mixin.metadata.withNamespace(namespace)
} }
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment