From a1c2f4d7e6ba6aa124d6016b870c1076d812bb03 Mon Sep 17 00:00:00 2001 From: elvis chan <78713260+elvischan-crypto@users.noreply.github.com> Date: Tue, 21 Jun 2022 09:52:26 +0800 Subject: [PATCH] fix jsonnet error with kube-prometheus > v0.8 kubelet ServiceMonitor moved to kubernetesControlPlane starting from v0.8 Signed-off-by: elvis chan <78713260+elvischan-crypto@users.noreply.github.com> --- jsonnet/lens/custom-prometheus.jsonnet | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jsonnet/lens/custom-prometheus.jsonnet b/jsonnet/lens/custom-prometheus.jsonnet index 9c733766ba..10384fdaa5 100644 --- a/jsonnet/lens/custom-prometheus.jsonnet +++ b/jsonnet/lens/custom-prometheus.jsonnet @@ -24,7 +24,7 @@ }, }, }, - prometheus+:: { + kubernetesControlPlane+:: { serviceMonitorKubelet+: { spec+: { endpoints: std.map(function(endpoint)