Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

✨ Add ability to register runnables as pre-start hooks #2044

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Commits on May 6, 2024

  1. feat(manager): add prestart hook support

    When implementing a controller that uses leader election, there maybe be
    work that needs to be done after winning the election but before
    processing enqueued requests. For example, a controller may need to
    build up an internal mapping of the current state of the cluster before
    it can begin reconciling.
    
    This changeset adds support for adding prestart hooks to
    controller-runtime's manager implementation. This hook runs after the
    manager has been elected leader, immediately before the leader election
    controllers are started.
    
    Related kubernetes-sigs#607
    terinjokes committed May 6, 2024
    Configuration menu
    Copy the full SHA
    3ea050d View commit details
    Browse the repository at this point in the history