-
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
⚠️ Update klog dependency to v2 #4284
Conversation
Welcome @stmcginnis! |
Hi @stmcginnis. Thanks for your PR. I'm waiting for a kubernetes-sigs 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. |
/ok-to-test |
cc @enyinna1234 |
i didn't check the CI errors here, but you are probably going to have to update the go.mod/sum files too. |
Yep, Will investigate. |
We should move controller runtime first to klog v2, if we haven't already. |
I don't think controller-runtime uses klog directly, only |
Indeed, it would appear controller-runtime had already switch to klog v2: |
/test pull-cluster-api-test-main Appears to have hit #4184 |
Running |
Thanks! Looks like that didn't do it though - pretty much had run those manually. Glad to know about it though. Looks like I may need to run |
Hah, I take that back. Running |
/lgtm |
/milestone v0.4.0 |
It's my understanding that it should not have an impact on providers. klog and klogv2 should be able to be used together, it's just the path through the code that consuming code will take to ultimately get to the logging. |
@vincepri why did you mark the change as breaking? |
It'd be great actually if we document that we've switched to v2 (hence my marking this PR as Hope the above example makes sense, happy to provide more details. |
Oh, great point @vincepri, I hadn't thought of that. Where should this be documented? Happy to add some notification about the v2 requirement. I see I will also look at proposing updates to any of the other upstream |
This switches klog usage over to klog v2.5.0 to match the current version being used in k/k. This should also address some issues we're seeing that have since been fixed in klog between the quite old v1.0.0 and v2.5.0 Signed-off-by: Sean McGinnis <[email protected]>
Missed updating the go.mod file in test/infrastructure/docker/go.mod to match upgrading the rest of the repo to use klog v2. Signed-off-by: Sean McGinnis <[email protected]>
Signed-off-by: Sean McGinnis <[email protected]>
This updates the v1alpha3-to-v1alpha4 docs to call out the move to klogv2 and recommending that all cluster providers do the same. Signed-off-by: Sean McGinnis <[email protected]>
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
/lgtm
[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 |
What this PR does / why we need it:
This switches klog usage over to klog v2.5.0 to match the current
version being used in k/k.
This should also address some issues we're seeing that have since been
fixed in klog between the quite old v1.0.0 and v2.5.0
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 #3763