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 k8s.io dependencies to v0.23.1 #4675
Conversation
Hi @munnerz. Thanks for your PR. I'm waiting for a jetstack member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. 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. |
Signed-off-by: James Munnelly <jmunnelly@apple.com>
I think the failures here are unrelated... /retest |
In reference to your tweet, the reason why this one would be especially problematic is between v0.x and v1.x of a module, there's no change to the module path. For future versions (i.e. v2), logr would be available under both This hasn't always been the case with some modules when they move between versions (e.g. klog), because klog has a singleton within it and it appears they have opted to not do anything clever to maintain compatibility/interoperability between module versions (I'm not 100% sure on the 'why' of that though). This is effectively breaking the go module contract as it should be possible to have various dependencies importing both versions (with one possibly providing a compatibility layer around the other). |
Signed-off-by: James Munnelly <jmunnelly@apple.com>
Signed-off-by: James Munnelly <jmunnelly@apple.com>
Signed-off-by: James Munnelly <jmunnelly@apple.com>
Signed-off-by: James Munnelly <jmunnelly@apple.com>
/kind cleanup |
/assign |
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.
I think this all looks good and I'm very glad that hack/update-codegen.sh
no longer downloads so much.
/lgtm
/approve
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: munnerz, wallrj 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 |
What this PR does / why we need it:
This has also involved upgrading go-logr from a
v0.X
release tov1.X
, which brings with it a significant change in thatLogger
is no longer an interface and is now a struct that wraps an interface.They've also made
NewContext
andFromContext
first-class functions in the logr package too, so we can (over time) remove our own in-built variants.To better handle the interface/struct change, I've opted to change up some bits of the webhook that previously accepted a
stopCh
and aLog
field set on them to use a context provided one instead. There's a few extra changes I want to do here to tidy this up/make it cleaner, but I don't want to explode this PR in complexity :)Release note:
fixes #4500