mirror of
https://github.com/prometheus-operator/kube-prometheus.git
synced 2025-10-24 21:51:18 +02:00
Merge pull request #1534 from junotx/k8s-rule-group
jsonnet: fix default empty groups for k8s PrometheusRule
This commit is contained in:
commit
f7c9de918c
@ -47,8 +47,8 @@ function(params) {
|
||||
labels+: k8s._config.mixin.ruleLabels,
|
||||
},
|
||||
spec: {
|
||||
local r = if std.objectHasAll(k8s.mixin, 'prometheusRules') then k8s.mixin.prometheusRules.groups else {},
|
||||
local a = if std.objectHasAll(k8s.mixin, 'prometheusAlerts') then k8s.mixin.prometheusAlerts.groups else {},
|
||||
local r = if std.objectHasAll(k8s.mixin, 'prometheusRules') then k8s.mixin.prometheusRules.groups else [],
|
||||
local a = if std.objectHasAll(k8s.mixin, 'prometheusAlerts') then k8s.mixin.prometheusAlerts.groups else [],
|
||||
groups: a + r,
|
||||
},
|
||||
},
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user