From d36aa14d776fd5576d462bda533184a8f79865bc Mon Sep 17 00:00:00 2001 From: hasithsen Date: Mon, 9 Dec 2024 10:15:31 +0530 Subject: [PATCH] feat: Remove deprecated object metrics from controllers fluxcd/flux2#5083 Signed-off-by: hasithsen --- internal/controller/kustomization_controller.go | 2 -- 1 file changed, 2 deletions(-) diff --git a/internal/controller/kustomization_controller.go b/internal/controller/kustomization_controller.go index 8072ee16..9df5966f 100644 --- a/internal/controller/kustomization_controller.go +++ b/internal/controller/kustomization_controller.go @@ -185,9 +185,7 @@ func (r *KustomizationReconciler) Reconcile(ctx context.Context, req ctrl.Reques } // Record Prometheus metrics. - r.Metrics.RecordReadiness(ctx, obj) r.Metrics.RecordDuration(ctx, obj, reconcileStart) - r.Metrics.RecordSuspend(ctx, obj, obj.Spec.Suspend) // Log and emit success event. if conditions.IsReady(obj) {