-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
⚠️ Upgrade to controller-runtime v0.10, controller-tools v0.7 and Kubernetes v1.22 #5249
⚠️ Upgrade to controller-runtime v0.10, controller-tools v0.7 and Kubernetes v1.22 #5249
Conversation
23f009f
to
1695468
Compare
1695468
to
902eee9
Compare
g.Expect(env.Create(ctx, machine)).To(Succeed()) | ||
// Note: We have to DeepCopy the machine, because the Create call clears the status and | ||
// reconcileInterruptibleNodeLabel requires .status.nodeRef to be set. | ||
g.Expect(env.Create(ctx, machine.DeepCopy())).To(Succeed()) |
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.
Note: this was an intended change in controller-runtime: kubernetes-sigs/controller-runtime#1640
Name: "test-cluster", | ||
Annotations: make(map[string]string), | ||
Namespace: ns.GetName(), | ||
Name: "test-cluster", | ||
}, | ||
} | ||
g.Expect(k8sClient.Create(ctx, clusterA)).To(Succeed()) |
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.
The Create
call updates the empty map to nil.
I assume also a consequence of this change kubernetes-sigs/controller-runtime#1640
validatingWebhooks := []client.Object{} | ||
mutatingWebhooks := []client.Object{} | ||
validatingWebhooks := []admissionv1.ValidatingWebhookConfiguration{} | ||
mutatingWebhooks := []admissionv1.MutatingWebhookConfiguration{} | ||
|
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.
This was necessary because WebhookInstallOptions now expects the correct types and not just client.Object
To fix the remaining test failures we need: kubernetes-sigs/controller-runtime#1666 With that fix, I had successful tests locally (via I don't see a good workaround/alternative. |
lgtm pending 1666 |
902eee9
to
507af19
Compare
I'm now using the latest commit of the CR main branch with my merged PRs, should all work now. |
is this on hold until the code freeze starts? given that it's breaking |
d5260f2
to
3bf236d
Compare
3bf236d
to
662bbc8
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.
/lgtm
662bbc8
to
8975b65
Compare
flake + GitHub download error |
/lgtm |
…kup-fix 🐛 Release Tooling: Version calculation script should only use annotated tags
8975b65
to
81c140d
Compare
This PR now uses the latest CR v0.10.1 release. I updated the PR description to also close #5277 |
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
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.
/approve
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: vincepri 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 |
Signed-off-by: Stefan Büringer [email protected]
What this PR does / why we need it:
Which issue(s) this PR fixes (optional, in
fixes #<issue number>(, fixes #<issue_number>, ...)
format, will close the issue(s) when PR gets merged):Fixes #5245
Now also fixes #5277
WIP => debugging tests