Skip to content

Standerdise the controller workflow  #2129

Open
@Karthik-K-N

Description

@Karthik-K-N

/kind feature
/area provider/ibmcloud

Describe the solution you'd like
[A clear and concise description of what you want to happen.]

CAPI has now updated to contain many more helper functions which can be used in our controller to make it more standard and more readable, There are helper functions to add finalisers, to verify if the resource is paused or not and many more.
Reference to one of the controller from CAPI: cluster controller

May be we should spend some time to clean up our controller logic and make the workflow standard across various controller.

  1. Pass context to calling functions to derive logger.
  2. Use CAPI provided helper functions.
  3. Adopt CAPI v1beta2 changes.

Anything else you would like to add:
[Miscellaneous information that will assist in solving the issue.]

Metadata

Metadata

Assignees

Labels

area/provider/ibmcloudIssues or PRs related to ibmcloud providerkind/featureCategorizes issue or PR as related to a new feature.

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions