jsonnet/addons: simplify managed-cluster addon

Signed-off-by: paulfantom <pawel@krupa.net.pl>
This commit is contained in:
paulfantom
2021-03-22 18:05:45 +01:00
parent e4b58eaa5c
commit 5d2156ffbf

View File

@@ -2,12 +2,9 @@
// Disable scrape jobs, service monitors, and alert groups for these components by overwriting 'main.libsonnet' defaults // Disable scrape jobs, service monitors, and alert groups for these components by overwriting 'main.libsonnet' defaults
{ {
local k = super.kubernetesControlPlane,
kubernetesControlPlane+: { kubernetesControlPlane+: {
[q]: null serviceMonitorKubeControllerManager:: null,
for q in std.objectFields(k) serviceMonitorKubeScheduler:: null,
if std.setMember(q, ['serviceMonitorKubeControllerManager', 'serviceMonitorKubeScheduler'])
} + { } + {
prometheusRule+: { prometheusRule+: {
spec+: { spec+: {