-
Notifications
You must be signed in to change notification settings - Fork 459
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
Refactor Gardener components to native controller-runtime components #4251
Comments
I'm currently working on this for the remaining gardenlet controllers as part of #2822 |
It's mostly done with #4503. |
/assign @timebertt |
/in-progress |
I tried to accomplish this, but I faced a few difficulties with the current implementation/architecture of the package:
Given, that this controller package anyways needs significant restructuring work (actually it almost needs to be rebuilt from scratch) in order to make it work with native c-r constructs, I decided to not refactor this right now to So this will be done in a dedicated PR as part of step
|
I look into this and played around with it a little bit. The result:
Hence, I marked the step as completed for now. |
The Gardener project currently lacks enough contributors to adequately respond to all issues and PRs.
You can:
/lifecycle stale |
/remove-lifecycle stale |
Now that #7147 is merged, we can close this issue, correct? :) |
Yes 🚀 |
@shafeeqes: Closing this issue. In response to this:
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. |
How to categorize this issue?
/area open-source dev-productivity scalability
/kind cleanup technical-debt
What would you like to be added:
gardener-scheduler
,gardener-controller-manager
andgardenlet
should be refactored such that they become native controller-runtime components.gardener-resource-manager
,gardener-admission-controller
,gardener-seed-admission-controller
are already native controller-runtime components.gardener-apiserver
is special anyways because it's neither a controller nor a webhook server.Why is this needed:
Steps
reconcile.Reconciler
interfacecontroller-runtime
manager and switchShoot
controller #4320logrus
withlogr
logcheck
tool to ensure even number of args forInfo
,Error
andWithValues
calls, etc.: Add logcheck tool #5442controller-runtime
manager and switchShoot
controller #4320logr
logger into reconcile context to make it retrievable bylogf.FromContext(ctx)
: Switch controller-manager to logr (1) #5057gardenlet
tologr
(1) #6259gardenlet
tologr
(2) #6260gardenlet
tologr
(3) #6264gardenlet
tologr
(4) #6265gardenlet
tologr
(5) #6266gardenlet
tologr
(6) #6267gardenlet
tologr
(7) #6278gardenlet
tologr
(8) #6282./test/...
packages./test/...
packages tologr
and dropgithub.com/sirupsen/logrus
dependency #6316logr
and streamline/cleanup logs #6332controller-runtime
manager and switchCloudProfile
controller #6333controller-runtime
manager and switchShoot
controller #4320controller-runtime
manager #6688Bastion
controller tocontroller-runtime
and introduce common indexers #6358CertificateSigningRequest
controller tocontroller-runtime
#6615controller-runtime
manager and switchCloudProfile
controller #6333CloudProfile
controller #6360ControllerDeployment
controller tocontroller-runtime
#6462ControllerRegistration
controller tocontroller-runtime
#6629Event
controller tocontroller-runtime
#6550ExposureClass
controller tocontroller-runtime
#6423ManagedSeedSet
controller tocontroller-runtime
#6742Plant
API and controller #6348Project
controller tocontroller-runtime
#6645Project
controllers tocontroller-runtime
#6667Quota
controller tocontroller-runtime
#6391SecretBinding
controller tocontroller-runtime
#6621Seed
controller tocontroller-runtime
#6636Shoot
controller tocontroller-runtime
#6620controller-runtime
manager and switchShoot
controller #4320cache.Options.SelectorsByObject
for watched objects)BackupBucket
controller tocontroller-runtime
#6837BackupEntry
controller tocontroller-runtime
#6926Bastion
controller tocontroller-runtime
#6839ControllerInstallation
controller tocontroller-runtime
#6733controller-runtime
#6801ManagedSeed
controller tocontroller-runtime
#7108NetworkPolicy
controller tocontroller-runtime
#6991Seed
controller tocontroller-runtime
#6836Shoot
migration controller tocontroller-runtime
#7062Shoot
main controller tocontroller-runtime
#7082Shoot
main controller special cases #7189Shoot
care controller tocontroller-runtime
#7206shootsecret
controller tocontroller-runtime
#6819controller-runtime
manager and switchShoot
controller #4320controller-runtime
manager and switchCloudProfile
controller #6333controller-runtime
manager #6688http
scheme: Fix gardenlet metrics scraping by seed-prometheus #6979controller-runtime
metrics #7180gardener-admission-controller
entrypoint #6706gardener-controller-manager
controllers after refactorings #6699gardener-scheduler
entrypoint and controllers #6690gardener-seed-admission-controller
entrypoint #6708gardener-resource-manager
entrypoint and introduce component configuration #6865gardener-admission-controller
#6873gardener-seed-admission-controller
logic intogardener-resource-manager
#7053predicate.GenerationChangedPredicate
instead of comparingmetadata.generation
andstatus.observedGeneration
and stop returningnil
after adding finalizers in order to prevent duplicated reconciliations (basically implement option b) from Harmonize finalizer addition across all controllers #4730 where it is not done yet) -> Harmonize the remaining finalizer additions of controllers #7056The text was updated successfully, but these errors were encountered: