This repository was archived by the owner on Nov 9, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 18
Target client improvements #95
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Contributor
Author
|
Also tested this PR in my local gardener setup, shoot creation/reconciliation/hibernation/wakeup/deletion works fine. |
Contributor
|
/assign |
timuthy
suggested changes
Dec 3, 2020
Contributor
timuthy
left a comment
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.
Nice PR. Now it looks very similar to what we do in the Gardener extension which will further simplify maintenance, thanks for that. I only found one nit for now.
cf4b18e to
ff5bb22
Compare
ff5bb22 to
ca3caf6
Compare
timuthy
approved these changes
Dec 4, 2020
Contributor
timuthy
left a comment
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.
/lgtm
This was referenced Dec 7, 2020
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Labels
area/quality
Output qualification (tests, checks, scans, automation in general, etc.) related
area/robustness
Robustness, reliability, resilience related
area/scalability
Scalability related
kind/enhancement
Enhancement, improvement, extension
needs/changes
Needs (more) changes
needs/ok-to-test
Needs approval for testing (check PR in detail before setting this label because PR is run on CI/CD)
size/xl
Size of pull request is huge (see gardener-robot robot/bots/size.py)
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
How to categorize this PR?
/area scalability robustness quality
/kind enhancement
/priority normal
What this PR does / why we need it:
This PR improves the following aspects of the client for the target cluster:
--target-disable-cache. In this case, grm won't cache any objects of the target cluster and always talk to the target API server directly (fixes Add option to disable target cache #92).DynamicRESTMapper, which will ensure that resources are rediscovered onNoMatchErrors, but discovery calls are not executed more than once every 10 minutes (fixes Switch to DynamicRESTMapper for target client #93).I took the chance to refactor the contents of
app.go, as I found it to be very overloaded and hard to comprehend.Now
add.goClassFilterlogic is moved into its own dedicated packagecmdapp.goonly instruments those options andAddToManagerfunctions to put everything together. This is very similar to how we construct manager, options and controllers in our extensions.Also, I switched to our gcr copies of the base images.
Special notes for your reviewer:
Similar to g/g, grm now also vendors our c-r fork in order to get the fix from kubernetes-sigs/controller-runtime#1151:
sigs.k8s.io/controller-runtime => github.com/gardener/controller-runtime v0.6.3-gardener.1We can drop it, once we have upgraded to [email protected].
Release note: