-
Notifications
You must be signed in to change notification settings - Fork 40.9k
Fixing go-vet finding "call of reflect.DeepEqual copies lock value"… #132519
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
…by just asserting on the basic fields that should be reset when ClearState() is called
Welcome @ldanielmadariaga! |
Hi @ldanielmadariaga. Thanks for your PR. I'm waiting for a kubernetes 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. |
/ok-to-test |
/triage accept |
@richabanker: The label(s) In response to this:
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. |
/triage accepted |
/lgtm Thanks! |
LGTM label has been added. Git tree hash: 040ebb0cb15e270efdcca93d3b44e0b0ee4518c8
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: ldanielmadariaga, richabanker 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 |
… by just asserting on the basic fields that should be reset when ClearState() is called
What type of PR is this?
/kind bug
What this PR does / why we need it:
Fixing go vet copylock findings in staging/src/k8s.io/component-base/metrics.
Remove reflect.deepequals which triggers the finding as it copies locks and just assert the basic fields that the ClearState() method would reset.
Which issue(s) this PR is related to:
Fixes #132464
Special notes for your reviewer:
Does this PR introduce a user-facing change?
Additional documentation e.g., KEPs (Kubernetes Enhancement Proposals), usage docs, etc.: