-
Notifications
You must be signed in to change notification settings - Fork 1.2k
📖 chore: Add explanatory comment for continuing to use json-patch v4 in the fake client #3118
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
Conversation
Welcome @kersten! |
Hi @kersten. 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-sigs/prow repository. |
@@ -29,8 +29,7 @@ import ( | |||
"sync" | |||
"time" | |||
|
|||
// Using v4 to match upstream |
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.
Did upsream switch to v5?
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.
What is meant by upstream?
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.
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.
Also see the comment in go.mod
// Using v4 to match upstream
Maybe we should add more details like linking #2643
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.
Yeah, that would definitely help. First I thought just asking a question about what upstream means. Also I would like to get e deeper understanding in upstream how the old v4 could be replaced.
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.
Yup. That's a question for k/k. I'm pretty sure there already were discussions about this. I just don't know where
/hold |
We can change this PR to make the comment a bit clearer (#3118 (comment)), but otherwise I would close it. I think everything else has to happen in k/k first |
Ok, great, I will change it towards the better comment 👌🏻 |
@sbueringer does this comment meet your criteria? |
Maintain json-patch v4 to align with Kubernetes code and avoid breaking changes in v5. This ensures compatibility and stability as the fake client code is adapted from client-go's testing fixture, which relies on v4. See: - kubernetes/kubernetes#91622 - kubernetes/kubernetes#120326
Thx, sounds pretty good. Please just rename the PR accordingly then I'll merge |
Done |
Thx! /lgtm /hold cancel |
LGTM label has been added. Git tree hash: a86339e6a07d0bcf51e1b85a3b4ecb5eb206a3ee
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: kersten, sbueringer 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 |
/retest |
update the json-patch dependency from v4 to v5 in the fake client implementation. This change aligns the dependency with its latest version in the
github.com/evanphx/json-patch
package.also, fix a minor formatting issue in a TODO comment for consistency.