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
{
local k = super.kubernetesControlPlane,
kubernetesControlPlane+: {
[q]: null
for q in std.objectFields(k)
if std.setMember(q, ['serviceMonitorKubeControllerManager', 'serviceMonitorKubeScheduler'])
serviceMonitorKubeControllerManager:: null,
serviceMonitorKubeScheduler:: null,
} + {
prometheusRule+: {
spec+: {