Merge pull request #1534 from junotx/k8s-rule-group
jsonnet: fix default empty groups for k8s PrometheusRule
This commit is contained in:
@@ -47,8 +47,8 @@ function(params) {
|
|||||||
labels+: k8s._config.mixin.ruleLabels,
|
labels+: k8s._config.mixin.ruleLabels,
|
||||||
},
|
},
|
||||||
spec: {
|
spec: {
|
||||||
local r = if std.objectHasAll(k8s.mixin, 'prometheusRules') then k8s.mixin.prometheusRules.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 {},
|
local a = if std.objectHasAll(k8s.mixin, 'prometheusAlerts') then k8s.mixin.prometheusAlerts.groups else [],
|
||||||
groups: a + r,
|
groups: a + r,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user