Skip to content
This repository was archived by the owner on May 14, 2025. It is now read-only.
This repository was archived by the owner on May 14, 2025. It is now read-only.

feat(generic controller): expose methods to support custom resources that like to define the attachments #140

Open
@AmitKumarDas

Description

@AmitKumarDas

ProblemStatement: GenericController serves the purpose of being used as a config file to define the watch & attachments required to implement the reconciliation logic for any CustomResource. However, for certain use cases, it seems better to delegate definition of attachments to specific CustomResource specs instead of being defined in GenericController specs. GenericController is thus left with the watch definition only.

The use cases that will need this feature are the ones where the attachment kinds are dynamic & can be defined as well as removed by users of the CustomResource.

This also means individual CustomResource's hooks need to be more involved in the reconciliation process. In other words, these hooks will take up the additional responsibility of managing the desired state themselves instead of the current way of metac handling the desired state.

This issue tracks the possibility of exposing methods in metac that allows these hooks to invoke this desired state handling logic.

Metadata

Metadata

Assignees

No one assigned

    Labels

    configdesignHow Metac worksenhancementNew feature or requestgctlGeneric Controller

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions