Skip to content

Commit

Permalink
KSM config: Update for NC v1beta3 API
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
darkowlzz committed Oct 5, 2023
1 parent 21c9646 commit 14e2f5a
Showing 1 changed file with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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:
Expand All @@ -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
Expand Down

0 comments on commit 14e2f5a

Please sign in to comment.