Merge pull request #940 from paulfantom/prometheus-rule-name

jsonnet: better name for prometheus PrometheusRule object
This commit is contained in:
Sergiusz Urbaniak authored and GitHub committed 2021-02-15 09:41:12 +01:00
commit 0c25559b39
2 files changed
+2 -2

No files matched your search

@@ -66,7 +66,7 @@ function(params) {
kind: 'PrometheusRule', kind: 'PrometheusRule',
metadata: { metadata: {
labels: p.config.commonLabels + p.config.mixin.ruleLabels, labels: p.config.commonLabels + p.config.mixin.ruleLabels,
name: p.config.name + '-rules', name: 'prometheus-' + p.config.name + '-prometheus-rules',
namespace: p.config.namespace, namespace: p.config.namespace,
}, },
spec: { spec: {
+1 -1
View File
@@ -8,7 +8,7 @@ metadata:
app.kubernetes.io/version: 2.24.0 app.kubernetes.io/version: 2.24.0
prometheus: k8s prometheus: k8s
role: alert-rules role: alert-rules
name: k8s-rules name: prometheus-k8s-prometheus-rules
namespace: monitoring namespace: monitoring
spec: spec:
groups: groups: