-
Notifications
You must be signed in to change notification settings - Fork 84
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
Add validation of Kubernetes feature gates #280
Add validation of Kubernetes feature gates #280
Conversation
/invite @rfranzke @BeckerMax @voelzmo Similar PR should be opened for all other provider extensions. I will do this after gardener/gardener#4149 and this one are merged. |
8a955b8
to
4a482b0
Compare
Hey @stoyanr, thanks for the ping! I'll set aside some time to really look at this and the corresponding gardener PR later today. Looking at the sheer numbers of the PR, I'm already feeling kind of anxious to look at ~50k changed lines within a single commit. I'll trust that there's a lot of things going on that I don't really need to care about in detail (e.g. updating vendored dependencies) – would it be possible to split these actions out to a separate commit in the future, such that I can easily select what to focus the review on? Thanks! |
@voelzmo The ~50k changed lines come from the revendor. This is really quite normal, nothing to worry about. You shouldn't look into all the When you ignore |
Hey @stoyanr, thanks for your perspective! Just to clarify: I'm not asking to make this two separate PRs, it is just about committing things separately if they can be separated – some people call this working mode micro commits. I understand that this is not required at all, it is just that for me as a reviewer having an easy means to separate things to look at during a review makes my life much easier (e.g. by using the 'only look at changes from a single commit' dropdown during the review). TL;DR
I, as a reviewer, ask
I'm not sure if this is a thing y'all have been discussing in the team already, I just wanted to share my feelings when opening a PR tab with big numbers of changed lines and a very low number of commits ;) |
@voelzmo Please understand that what I am doing here is a standard practice. Micro commits is what we do as well, no need to discuss it here. This is a micro commit. You simply have to ignore Once again: I need to use a function from a newer gardener, which is itself based on a newer kubernetes. There is no other way to do it besides vendoring this new gardener / kubernetes. This brings all these 50k changes you are worried about, and which you basically should ignore. In extension projects, this happens all the time, you will find a number of such PRs already merged. I would have agreed it makes sense to have the revendor itself in a different commit if after the revendor a lot of changes were needed to the project (due to incompatible changes, etc.). However, this is not the case. I therefore see no value in this ( If you still have concerns about it, let's discuss it privately first before continuing the discussion here. |
4a482b0
to
c95ec3c
Compare
@voelzmo I split it into 2 commits after all, I realized it might be a bit more challenging if you are not used to working with such commits. Hopefully it's easier for you now. |
Highly appreciated, thanks! |
@rfranzke, @BeckerMax You have pull request review open invite, please check |
Infrastructure tests fail with |
@dguendisch @schrodit Can you check, please? |
@stoyanr we had a look and found the issue: In fact you did one change to the tests. gardener-extension-provider-gcp/test/integration/infrastructure/infrastructure_test.go Line 597 in ae6cef4
We suspect that the infra object is cleared in |
ae6cef4
to
63385dd
Compare
@schrodit Thanks, I fixed it now. |
/test |
Testrun: e2e-gfds4 +---------------------+---------------------+-----------+----------+ | NAME | STEP | PHASE | DURATION | +---------------------+---------------------+-----------+----------+ | infrastructure-test | infrastructure-test | Succeeded | 8m21s | +---------------------+---------------------+-----------+----------+ |
/cc @rfranzke @ialidzhikov Tests are passing now, could you please take another look? |
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
FYI:
Yes that's the case. I fixed it in gardener/gardener#4191 (namely the first commit). |
Sorry for the long delay, I will try to check this PR later today. :( |
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
Generally I had some doubts for OOT CCMs that they accept the same set of feature gates, but I now checked the --help
of OOT CCMs that we currently use (alicloud and openstack) and it seems that even the OOT CCMs accept the same set of feature gates. So, lgtm.
How to categorize this PR?
/area usability
/area ops-productivity
/kind enhancement
/platform gcp
What this PR does / why we need it:
Adds validation of Kubernetes feature gates (in
CloudControllerManager
field of theControlPlaneConfig
custom resource), as requested in gardener/gardener#3987 and #263.Which issue(s) this PR fixes:
Fixes #263
Special notes for your reviewer:
ValidateFeatureGates
function.Release note: