Skip to content

Commit

Permalink
provide not-nil context to auto-update reconciling (#3)
Browse files Browse the repository at this point in the history
  • Loading branch information
apetruhin committed Jan 19, 2025
1 parent 043a7b4 commit bbc631c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion controller/controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -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()
}
}
}()
Expand Down

0 comments on commit bbc631c

Please sign in to comment.