Skip to content

Commit

Permalink
Update controllers/docluster_controller.go
Browse files Browse the repository at this point in the history
Co-authored-by: Marko Mudrinić <[email protected]>
  • Loading branch information
Timo Reimann and xmudrii authored Dec 7, 2020
1 parent bd5b9ee commit 8479fcd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion controllers/docluster_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ func (r *DOClusterReconciler) reconcileDelete(ctx context.Context, clusterScope
return reconcile.Result{}, errors.Wrapf(err, "error deleting load balancer for DOCluster %s/%s", docluster.Namespace, docluster.Name)
}

r.Recorder.Eventf(docluster, corev1.EventTypeNormal, "LoadBalancerDeleted", "Deleted an instance - %s", loadbalancer.Name)
r.Recorder.Eventf(docluster, corev1.EventTypeNormal, "LoadBalancerDeleted", "Deleted an LoadBalancer - %s", loadbalancer.Name)
// Cluster is deleted so remove the finalizer.
controllerutil.RemoveFinalizer(docluster, infrav1.ClusterFinalizer)
return reconcile.Result{}, nil
Expand Down

0 comments on commit 8479fcd

Please sign in to comment.