diff --git a/controller/controller.go b/controller/controller.go index e405b04..f84aa26 100644 --- a/controller/controller.go +++ b/controller/controller.go @@ -55,7 +55,9 @@ func NewCorootReconciler(mgr ctrl.Manager) *CorootReconciler { instances := maps.Keys(r.instances) r.instancesLock.Unlock() for _, i := range instances { - _, _ = r.Reconcile(nil, i) + ctx, cancel := context.WithTimeout(context.Background(), AppVersionsUpdateInterval) + _, _ = r.Reconcile(ctx, i) + cancel() } } }()