From ff7cfc1d7a210eb9ca70fef2aea1f564eb503409 Mon Sep 17 00:00:00 2001 From: hasithsen Date: Thu, 12 Dec 2024 00:50:33 +0530 Subject: [PATCH] feat: Remove deprecated object metrics from controllers fluxcd/flux2#5083 Signed-off-by: hasithsen --- internal/controller/imagepolicy_controller.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/internal/controller/imagepolicy_controller.go b/internal/controller/imagepolicy_controller.go index 4258a322..3d6c4649 100644 --- a/internal/controller/imagepolicy_controller.go +++ b/internal/controller/imagepolicy_controller.go @@ -174,8 +174,7 @@ func (r *ImagePolicyReconciler) Reconcile(ctx context.Context, req ctrl.Request) retErr = kerrors.NewAggregate([]error{retErr, err}) } - // Always record readiness and duration metrics. - r.Metrics.RecordReadiness(ctx, obj) + // Always record duration metrics. r.Metrics.RecordDuration(ctx, obj, start) }()