Reuque question

16 views
Skip to first unread message

Lin Lin

unread,
Feb 7, 2025, 4:32:16 AMFeb 7
to sig-cluster-lifecycle
Hi cluster-api team

I've notice that the cluster controller would wait for infraCluster object to be deleted. But the returning Result and error are both empty, so the controller runtime will not retry Reconcile. Is there something I missed? Could this be an issue? The code is below.


log.Info("Cluster still has descendants - need to requeue", "controlPlaneRef", cluster.Spec.ControlPlaneRef.Name)
return ctrl.Result{}, nil

Thanks for you time.

Alberto Garcia Lamela

unread,
Feb 7, 2025, 4:52:57 AMFeb 7
to Lin Lin, sig-cluster-lifecycle
Hi Lin Lin,
The controller is watching the descendants, so further reconciliation should be triggered by events on those.
Thanks,
Alberto


To unsubscribe from this group and stop receiving emails from it, send an email to sig-cluster-life...@kubernetes.io.

Ian Howell

unread,
Feb 7, 2025, 8:08:44 AMFeb 7
to Alberto Garcia Lamela, Lin Lin, sig-cluster-lifecycle

Hey Alberto,

Apologies if I'm misunderstanding, but the log message that Lin Lin mentions specifically says that the resource will be requeued, but then it clearly is _not_ requeued. Perhaps we should update the log message?

Thanks,
Ian Howell

Alberto Garcia Lamela

unread,
Feb 7, 2025, 9:16:18 AMFeb 7
to Ian Howell, Lin Lin, sig-cluster-lifecycle
Hey Ian,
requeing should happen driven by the chain of events as descendants go through the deletion process, but please feel free to open a PR and we can follow up there on setting deleteRequeueAfter explicitly or updating logs.

Thanks,
Alberto.

Lin Lin

unread,
Feb 10, 2025, 4:00:42 AMFeb 10
to Alberto Garcia Lamela, Ian Howell, sig-cluster-lifecycle
I'm happy to do it. This is the PR to set the deleteRequeueAfter explicitly.

https://github.com/kubernetes-sigs/cluster-api/pull/11822
Reply all
Reply to author
Forward
0 new messages