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

[operator] Make controllerregistrar reconciler generic #9717

Merged
merged 2 commits into from May 21, 2024

Conversation

rfranzke
Copy link
Member

@rfranzke rfranzke commented May 7, 2024

How to categorize this PR?

/area dev-productivity
/kind enhancement

What this PR does / why we need it:
This PR makes gardener-operator's controllerregistrar controller generic so that it's easier to extend. For example, #8984 needed to make it register another controller, and this is was hard-coded into the reconciler. While this approach is fine, it will get easier after this PR in case we hit such case again in the future. After this PR, the only code that is needed is providing the AddToManager function when instantiating the reconciler.

Release note:

NONE

@gardener-prow gardener-prow bot added area/dev-productivity Developer productivity related (how to improve development) kind/enhancement Enhancement, improvement, extension cla: yes Indicates the PR's author has signed the cla-assistant.io CLA. labels May 7, 2024
@gardener-prow gardener-prow bot requested review from acumino and plkokanov May 7, 2024 14:13
@gardener-prow gardener-prow bot added the size/M Denotes a PR that changes 30-99 lines, ignoring generated files. label May 7, 2024
Copy link
Contributor

@shafeeqes shafeeqes left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the PR, only one suggestion.

pkg/operator/controller/controllerregistrar/reconciler.go Outdated Show resolved Hide resolved
@rfranzke rfranzke force-pushed the generic-controller-registrar branch from af58b66 to bd33c66 Compare May 21, 2024 07:11
@rfranzke rfranzke requested a review from shafeeqes May 21, 2024 07:11
@shafeeqes
Copy link
Contributor

/lgtm
/approve
/retest

@gardener-prow gardener-prow bot added the lgtm Indicates that a PR is ready to be merged. label May 21, 2024
Copy link
Contributor

gardener-prow bot commented May 21, 2024

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: shafeeqes

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

Copy link
Contributor

gardener-prow bot commented May 21, 2024

LGTM label has been added.

Git tree hash: ad219bb2e117284a84022c9d19b258f34928fc42

@gardener-prow gardener-prow bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label May 21, 2024
@gardener-prow gardener-prow bot merged commit a7333f7 into gardener:master May 21, 2024
18 checks passed
@rfranzke rfranzke deleted the generic-controller-registrar branch May 21, 2024 09:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. area/dev-productivity Developer productivity related (how to improve development) cla: yes Indicates the PR's author has signed the cla-assistant.io CLA. kind/enhancement Enhancement, improvement, extension lgtm Indicates that a PR is ready to be merged. size/M Denotes a PR that changes 30-99 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants