Skip to content

Commit

Permalink
Merge pull request #235 from fluxcd/revert-234-suspend-metrics
Browse files Browse the repository at this point in the history
Revert "Record suspend metrics"
  • Loading branch information
hiddeco authored Mar 17, 2021
2 parents 046346f + 39e6475 commit 82c43d4
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions controllers/helmrelease_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit 82c43d4

Please sign in to comment.