Skip to content

Commit 5c0c770

Browse files
committed
Actually include all components to monitoring-central
Signed-off-by: ArthurSens <[email protected]>
1 parent 7682f75 commit 5c0c770

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

monitoring-central/main.jsonnet

+9-3
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,14 @@
11
// This file is used to update monitoring-centrals with ArgoCD
22
local monitoringCentral = (import './monitoring-central.libsonnet');
3-
3+
local excludedComponents = [
4+
'kubePrometheus',
5+
'restrictedPodSecurityPolicy',
6+
];
47
[
58
monitoringCentral.kubePrometheus.namespace,
69
] +
7-
[monitoringCentral.grafana[name] for name in std.objectFields(monitoringCentral.grafana)] +
8-
[monitoringCentral.victoriametrics[name] for name in std.objectFields(monitoringCentral.victoriametrics)]
10+
[
11+
monitoringCentral[component][resource]
12+
for component in std.filter(function(component) !std.member(excludedComponents, component), std.objectFields(monitoringCentral))
13+
for resource in std.objectFields(monitoringCentral[component],)
14+
]

0 commit comments

Comments
 (0)