Revert "Record suspend metrics"

https://github.com/fluxcd/helm-controller/pull/234#issuecomment-801000679

Signed-off-by: Hidde Beydals <hello@hidde.co>
This commit is contained in:
Hidde Beydals 2021-03-17 13:24:32 +01:00 committed by Hidde Beydals
parent 046346fec3
commit 39e6475822
1 changed files with 0 additions and 7 deletions

View File

@ -153,13 +153,6 @@ func (r *HelmReleaseReconciler) Reconcile(ctx context.Context, req ctrl.Request)
// Return early if the HelmRelease is suspended.
if hr.Spec.Suspend {
if r.MetricsRecorder != nil {
objRef, err := reference.GetReference(r.Scheme, &hr)
if err != nil {
return ctrl.Result{}, err
}
defer r.MetricsRecorder.RecordSuspend(*objRef, hr.Spec.Suspend)
}
log.Info("Reconciliation is suspended for this object")
return ctrl.Result{}, nil
}