You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I fix this issue in my fork repository, if this issue will be accepted I can do pull request.
The text was updated successfully, but these errors were encountered:
Alexseij
changed the title
Start manager function not always returns error if it happens.
Start function of manager object not always returns error if it happens.
Jul 4, 2024
In my case error happened during initialization
l
object:controller-runtime/pkg/manager/internal.go
Lines 572 to 603 in e28a842
Error contains this message:
leaseDuration must be greater than renewDeadline
After that error, function of manager object
Start
dont return it.Because this code call here by function
startLeaderElection
:controller-runtime/pkg/manager/internal.go
Lines 432 to 449 in e28a842
After this defers:
controller-runtime/pkg/manager/internal.go
Lines 355 to 371 in e28a842
And this defers call another defers one of which waiting for value in channel:
controller-runtime/pkg/manager/internal.go
Lines 511 to 521 in e28a842
But this channel is never being close because
close
function calls only when there is no error whenl
object initializingcontroller-runtime/pkg/manager/internal.go
Lines 601 to 611 in e28a842
I fix this issue in my fork repository, if this issue will be accepted I can do pull request.
The text was updated successfully, but these errors were encountered: