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

[controller-manager] Switch ManagedSeedSet controller to controller-runtime #6742

Merged
merged 14 commits into from
Oct 19, 2022

Conversation

ary1992
Copy link
Contributor

@ary1992 ary1992 commented Sep 26, 2022

How to categorize this PR?

/area dev-productivity scalability
/kind enhancement

What this PR does / why we need it:
Refactor the ManagedSeedSet controller to controller-runtime.

Which issue(s) this PR fixes:
Part of #4251

Special notes for your reviewer:
Generally, we want to follow this cookbook while refactoring existing controllers:

  1. Add documentation
  2. Add integration test based on envtest
  3. Switch controller to controller-runtime

Release note:

NONE

@gardener-prow
Copy link
Contributor

gardener-prow bot commented Sep 26, 2022

Skipping CI for Draft Pull Request.
If you want CI signal for your change, please convert it to an actual PR.
You can still manually trigger a test run with /test all

@gardener-prow gardener-prow bot added do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. area/dev-productivity Developer productivity related (how to improve development) area/scalability Scalability related kind/enhancement Enhancement, improvement, extension labels Sep 26, 2022
@gardener-prow gardener-prow bot added the size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files. label Sep 26, 2022
@ary1992
Copy link
Contributor Author

ary1992 commented Sep 26, 2022

/test all

@gardener-prow gardener-prow bot added cla: no Indicates the PR's author has not signed the cla-assistant.io CLA. cla: yes Indicates the PR's author has signed the cla-assistant.io CLA. and removed cla: no Indicates the PR's author has not signed the cla-assistant.io CLA. labels Sep 26, 2022
@ary1992
Copy link
Contributor Author

ary1992 commented Sep 27, 2022

/test all

@ary1992 ary1992 marked this pull request as ready for review September 27, 2022 03:55
@gardener-prow gardener-prow bot removed the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Sep 27, 2022
@ary1992
Copy link
Contributor Author

ary1992 commented Sep 29, 2022

/test pull-gardener-e2e-kind

Copy link
Contributor

@plkokanov plkokanov 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!
I had a very rough view on the PR. Will continue with it next week.

docs/concepts/controller-manager.md Outdated Show resolved Hide resolved
pkg/controllermanager/controller/managedseedset/add.go Outdated Show resolved Hide resolved
docs/concepts/controller-manager.md Outdated Show resolved Hide resolved
docs/concepts/controller-manager.md Outdated Show resolved Hide resolved
docs/concepts/controller-manager.md Outdated Show resolved Hide resolved
docs/concepts/controller-manager.md Outdated Show resolved Hide resolved
docs/concepts/controller-manager.md Outdated Show resolved Hide resolved
docs/concepts/controller-manager.md Outdated Show resolved Hide resolved
docs/concepts/controller-manager.md Outdated Show resolved Hide resolved
docs/concepts/controller-manager.md Outdated Show resolved Hide resolved
@acumino acumino self-assigned this Oct 3, 2022
@rfranzke
Copy link
Member

rfranzke commented Oct 4, 2022

/assign

Copy link
Member

@rfranzke rfranzke left a comment

Choose a reason for hiding this comment

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

Can you please also

docs/concepts/controller-manager.md Outdated Show resolved Hide resolved
docs/concepts/controller-manager.md Outdated Show resolved Hide resolved
docs/concepts/controller-manager.md Outdated Show resolved Hide resolved
pkg/controllermanager/controller/managedseedset/add.go Outdated Show resolved Hide resolved
pkg/controllermanager/controller/managedseedset/add.go Outdated Show resolved Hide resolved
@ary1992
Copy link
Contributor Author

ary1992 commented Oct 8, 2022

Can you please also

No it cannot be deleted as managedseed controller in gardenlet still uses it.

ControllerPredicateFactory: kutil.ControllerPredicateFactoryFunc(c.filterSeed),

Copy link
Member

@rfranzke rfranzke left a comment

Choose a reason for hiding this comment

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

Joint review with @plkokanov:

Thanks for addressing the previous comments, it looks quite promising now. Please also drop the managedseedset_ prefix from files in managedseedset package (except for the managedseedset_suite_test.go).

cmd/gardener-controller-manager/app/app.go Outdated Show resolved Hide resolved
docs/concepts/controller-manager.md Outdated Show resolved Hide resolved
docs/concepts/controller-manager.md Outdated Show resolved Hide resolved
docs/concepts/controller-manager.md Outdated Show resolved Hide resolved
docs/concepts/controller-manager.md Outdated Show resolved Hide resolved
pkg/controllermanager/controller/managedseedset/add.go Outdated Show resolved Hide resolved
pkg/controllermanager/controller/managedseedset/add.go Outdated Show resolved Hide resolved
pkg/controllermanager/controller/managedseedset/add.go Outdated Show resolved Hide resolved
pkg/controllermanager/controller/managedseedset/add.go Outdated Show resolved Hide resolved
pkg/controllermanager/controller/managedseedset/add.go Outdated Show resolved Hide resolved
@ary1992 ary1992 force-pushed the refactor/managedseedset-ctrl branch 2 times, most recently from 70ea03c to 43c2a19 Compare October 19, 2022 05:38
docs/concepts/controller-manager.md Outdated Show resolved Hide resolved
docs/concepts/controller-manager.md Outdated Show resolved Hide resolved
docs/concepts/controller-manager.md Outdated Show resolved Hide resolved
docs/concepts/controller-manager.md Outdated Show resolved Hide resolved
docs/concepts/controller-manager.md Outdated Show resolved Hide resolved
pkg/controllermanager/controller/managedseedset/add.go Outdated Show resolved Hide resolved
pkg/controllermanager/controller/managedseedset/add.go Outdated Show resolved Hide resolved
pkg/controllermanager/controller/managedseedset/add.go Outdated Show resolved Hide resolved
@ary1992 ary1992 force-pushed the refactor/managedseedset-ctrl branch from 43c2a19 to 67993a8 Compare October 19, 2022 10:03
@gardener-prow
Copy link
Contributor

gardener-prow bot commented Oct 19, 2022

@ary1992: The following tests failed, say /retest to rerun all failed tests or /retest-required to rerun all mandatory failed tests:

Test name Commit Details Required Rerun command
pull-dependency-watchdog-verify-image-build 66422f9 link true /test pull-dependency-watchdog-verify-image-build
pull-gardener-check-vulnerabilities 5d43127 link false /test pull-gardener-check-vulnerabilities

Full PR test history. Your PR dashboard. Command help for this repository.
Please help us cut down on flakes by linking this test failure to an open flake report or filing a new flake report if you can't find an existing one. Also see our testing guideline for how to avoid and hunt flakes.

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.

@rfranzke
Copy link
Member

/test pull-gardener-e2e-kind-migration

@rfranzke
Copy link
Member

It looks good to me now, thanks for addressing all the suggestions.
/approve
Waiting for final review and /lgtm of @plkokanov (and milestone assignment)

@gardener-prow
Copy link
Contributor

gardener-prow bot commented Oct 19, 2022

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: rfranzke

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

@gardener-prow gardener-prow bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Oct 19, 2022
@plkokanov
Copy link
Contributor

Looks good to me as well.
/lgtm
/milestone v1.58

@gardener-prow gardener-prow bot added this to the v1.58 milestone Oct 19, 2022
@gardener-prow gardener-prow bot added the lgtm Indicates that a PR is ready to be merged. label Oct 19, 2022
@gardener-prow gardener-prow bot merged commit 70d9a0b into gardener:master Oct 19, 2022
@ary1992 ary1992 deleted the refactor/managedseedset-ctrl branch February 16, 2023 09:29
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) area/scalability Scalability related 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/XXL Denotes a PR that changes 1000+ lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants