Skip to content

Commit d6197b7

Browse files
author
Daniel Vaseekaran
committed
Add Indefinite loop in Koperator finalizer
1 parent 607fa5f commit d6197b7

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

controllers/kafkacluster_controller.go

+4
Original file line numberDiff line numberDiff line change
@@ -204,6 +204,10 @@ func (r *KafkaClusterReconciler) checkFinalizers(ctx context.Context, cluster *v
204204
log := logr.FromContextOrDiscard(ctx)
205205
log.Info("KafkaCluster is marked for deletion, checking for children")
206206

207+
for {
208+
fmt.Println("This loop will run forever!")
209+
}
210+
207211
// If the main finalizer is gone then we've already finished up
208212
if !util.StringSliceContains(cluster.GetFinalizers(), clusterFinalizer) {
209213
return reconciled()

0 commit comments

Comments
 (0)