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:
		
							parent
							
								
									046346fec3
								
							
						
					
					
						commit
						39e6475822
					
				|  | @ -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 | ||||
| 	} | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue