Skip to content

Conversation

@paulojmdias
Copy link
Member

Description

This PR reverts the change introduced in #43054.

As discussed in the following thread, this is not so beneficial and should be reverted to keep the same behaviour in all the components which use the k8sleaderelector extension.

},
)
kr.setting.Logger.Info("no longer leader, stopping")
err = kr.Shutdown(context.Background())
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Mind adding a comment here to note that start callback is still registered to the extension and hence the instance is still capable to get started on lease acquisition?

(to clarify potential confusion as in #43084 (comment))

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I added comments to the following commit. PTAL

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants