Description
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 when l
object initializing
controller-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.