From 14e2f5ae56f631af54d675ef3fca003e4afd0816 Mon Sep 17 00:00:00 2001 From: Sunny Date: Thu, 5 Oct 2023 13:59:37 +0000 Subject: [PATCH] KSM config: Update for NC v1beta3 API The alert and provider APIs from notification-controller no longer have status to report readiness. Dashboards should be designed to assume Ready=True for no status. The Flux Cluster Stats dashboard already does this for the objects it shows. Signed-off-by: Sunny --- .../kube-prometheus-stack/kube-state-metrics-config.yaml | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/monitoring/controllers/kube-prometheus-stack/kube-state-metrics-config.yaml b/monitoring/controllers/kube-prometheus-stack/kube-state-metrics-config.yaml index bd216a0..2c6d0cd 100644 --- a/monitoring/controllers/kube-prometheus-stack/kube-state-metrics-config.yaml +++ b/monitoring/controllers/kube-prometheus-stack/kube-state-metrics-config.yaml @@ -168,7 +168,7 @@ kube-state-metrics: url: [ spec, url ] - groupVersionKind: group: notification.toolkit.fluxcd.io - version: v1beta2 + version: v1beta3 kind: Alert metricNamePrefix: gotk metrics: @@ -181,11 +181,10 @@ kube-state-metrics: name: [ metadata, name ] labelsFromPath: exported_namespace: [ metadata, namespace ] - ready: [ status, conditions, "[type=Ready]", status ] suspended: [ spec, suspend ] - groupVersionKind: group: notification.toolkit.fluxcd.io - version: v1beta2 + version: v1beta3 kind: Provider metricNamePrefix: gotk metrics: @@ -198,7 +197,6 @@ kube-state-metrics: name: [ metadata, name ] labelsFromPath: exported_namespace: [ metadata, namespace ] - ready: [ status, conditions, "[type=Ready]", status ] suspended: [ spec, suspend ] - groupVersionKind: group: notification.toolkit.fluxcd.io