Skip to content

Implement Dynamic API Discovery for new Resource Types #51

Description

@cstanislawski

Currently, the lifecycle-controller performs API discovery exactly once during the SetupWithManager phase at startup. This approach creates a static watch list based on the cluster state at boot time.

If a CRD is installed or a new API service is enabled while the controller is running, the manager remains unaware of these types and cannot process lifecycle annotations on them until the controller pod is manually restarted.

The controller should be universal and self-healing regarding the cluster's API surface. A background discovery mechanism should be implemented that periodically refreshes the watch list and injects new watches into the running controller without requiring a restart.

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementSomething needs to be adjusted, or improved upon

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions