// SetupWithManager sets up the controller with the Manager.
SetupWithManager sets up the controller with the Manager.
// SetupWithManager sets up the controller with the Manager .
func (r *KVMClusterReconciler) SetupWithManager(ctx context.Context, mgr ctrl.Manager) error {
	log := ctrl.LoggerFrom(ctx)
	return ctrl.NewControllerManagedBy(mgr).
		For(&v1alpha4.KVMCluster{}).
		WithEventFilter(predicates.ResourceNotPausedAndHasFilterLabel(log, r.WatchFilterValue)).
		Complete(r)
}
func ( r * KVMClusterReconciler ) SetupWithManager ( ctx context . Context , mgr ctrl . Manager ) error { log := ctrl . LoggerFrom ( ctx ) return ctrl . NewControllerManagedBy ( mgr ) . For ( & v1alpha4 . KVMCluster { } ) . WithEventFilter ( predicates . ResourceNotPausedAndHasFilterLabel ( log , r . WatchFilterValue ) ) . Complete ( r ) }
SetupWithManager sets up the controller with the Manager.
SetupWithManager sets up the controller with the Manager .