-
Notifications
You must be signed in to change notification settings - Fork 464
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
[controller-manager] Switch ManagedSeedSet
controller to controller-runtime
#6742
Conversation
Skipping CI for Draft Pull Request. |
/test all |
af60f5f
to
9acdb34
Compare
/test all |
/test pull-gardener-e2e-kind |
There was a problem hiding this 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.
/assign |
pkg/controllermanager/controller/managedseedset/managedseedset_predicates.go
Outdated
Show resolved
Hide resolved
test/integration/controllermanager/managedseedset/managedseedset_suite_test.go
Outdated
Show resolved
Hide resolved
test/integration/controllermanager/managedseedset/managedseedset_test.go
Show resolved
Hide resolved
test/integration/controllermanager/managedseedset/managedseedset_test.go
Outdated
Show resolved
Hide resolved
test/integration/controllermanager/managedseedset/managedseedset_test.go
Show resolved
Hide resolved
test/integration/controllermanager/managedseedset/managedseedset_test.go
Outdated
Show resolved
Hide resolved
pkg/controllermanager/controller/managedseedset/managedseedset_predicates.go
Outdated
Show resolved
Hide resolved
There was a problem hiding this 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
- delete https://github.com/gardener/gardener/blob/master/pkg/utils/kubernetes/eventhandler.go and the test now (it's no longer used)?
- enable
gardener/cmd/gardener-controller-manager/app/app.go
Lines 139 to 140 in 3f57fd0
// TODO: enable this once we have refactored all controllers and added them to this manager // LeaderElectionReleaseOnCancel: true,
test/integration/controllermanager/managedseedset/managedseedset_suite_test.go
Outdated
Show resolved
Hide resolved
test/integration/controllermanager/managedseedset/managedseedset_suite_test.go
Outdated
Show resolved
Hide resolved
pkg/controllermanager/controller/managedseedset/managedseedset_predicates.go
Outdated
Show resolved
Hide resolved
pkg/controllermanager/controller/managedseedset/managedseedset_predicates.go
Outdated
Show resolved
Hide resolved
pkg/controllermanager/controller/managedseedset/managedseedset_predicates.go
Outdated
Show resolved
Hide resolved
No it cannot be deleted as
|
cff6528
to
547d277
Compare
…ler(2) Refactor shoot informer.
…ler(3) Refactor ManagedSeed informer
…ler(4) Refactor Seed informer
…ler(5) - Adapting integration test - Removing legacy controller implementation
- Renamed `set` to `managedSeedSet`. - Move predicates to add.go as it is done for other controllers. - Add `generationChange` predicate to `ManagedSeedSet` object.
66422f9
to
5d43127
Compare
There was a problem hiding this 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
).
70ea03c
to
43c2a19
Compare
test/integration/controllermanager/managedseedset/managedseedset_test.go
Show resolved
Hide resolved
test/integration/controllermanager/managedseedset/managedseedset_test.go
Show resolved
Hide resolved
43c2a19
to
67993a8
Compare
@ary1992: The following tests failed, say
Full PR test history. Your PR dashboard. Command help for this repository. 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. |
/test pull-gardener-e2e-kind-migration |
It looks good to me now, thanks for addressing all the suggestions. |
[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 |
Looks good to me as well. |
How to categorize this PR?
/area dev-productivity scalability
/kind enhancement
What this PR does / why we need it:
Refactor the
ManagedSeedSet
controller tocontroller-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:
envtest
controller-runtime
Release note: