Skip to content

Need some checkpoints of controller runtime #728

@kdada

Description

@kdada

The workflow of controller manager:

go startNonLeaderElectionRunnables
  -> waitForCache
  -> start nonLeaderElectionRunnables
[After leader election]go startLeaderElectionRunnables
  -> waitForCache
  -> start leaderElectionRunnables

I want to initialize something after cache ready and before starting runnables. So I need some check points:

go startNonLeaderElectionRunnables
  -> // Check point 1
  -> waitForCache
  -> // Check point 2
  -> start nonLeaderElectionRunnables
[After leader election]go startLeaderElectionRunnables
  -> // Check point 3
  -> waitForCache
  -> // Check point 4
  -> start leaderElectionRunnables

Then I can build global memory cache before starting controllers and webhooks. WDYT?

Metadata

Metadata

Assignees

No one assigned

    Labels

    lifecycle/rottenDenotes an issue or PR that has aged beyond stale and will be auto-closed.priority/awaiting-more-evidenceLowest priority. Possibly useful, but not yet enough support to actually get it done.

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions