Fix pointer receivers handling in unstructured converter#51505
Fix pointer receivers handling in unstructured converter#51505k8s-github-robot merged 1 commit intokubernetes:masterfrom
Conversation
|
Hi @ash2k. 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 I understand the commands that are listed here. DetailsInstructions 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. I understand the commands that are listed here. |
9f9249a to
624e4be
Compare
|
/ok-to-test |
|
/retest |
624e4be to
e60be9a
Compare
|
/retest |
|
/retest |
e60be9a to
b8d3144
Compare
|
/retest |
b8d3144 to
43334a8
Compare
There was a problem hiding this comment.
can we move and unify both into staging/src/k8s.io/apimachinery/pkg/conversion/unstructured/testing/roundtrip.go?
There was a problem hiding this comment.
Done. I moved the whole test file into a subdirectory - tests share type definitions (A, B, etc) so I couldn't move just the roundtrip test.
f1128ed to
3ec0b35
Compare
There was a problem hiding this comment.
I ran hack/update-bazel.sh but it did not remove this go_test section even though there are no test files in this directory anymore. I removed it myself. Probably a bug in whatever is ran in update-bazel.sh script.
There was a problem hiding this comment.
It seems to be broken.
/cc @mikedanese @frobware
There was a problem hiding this comment.
can you call the package testing instead? test makes trouble with go get.
There was a problem hiding this comment.
no underscore please. golint freaks out.
3ec0b35 to
5d2cde6
Compare
|
Comments addressed. |
5d2cde6 to
a672b98
Compare
|
/lgtm |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: ash2k, sttts Associated issue: 47889 The full list of commands accepted by this bot can be found here. DetailsNeeds approval from an approver in each of these OWNERS Files:You can indicate your approval by writing |
|
/retest |
|
/test all [submit-queue is verifying that this PR is safe to merge] |
|
Automatic merge from submit-queue |
What this PR does / why we need it:
Fixes unstructured converter to properly handle types that have
MarshalJSON()implemented with a pointer receiver. In particular the converter now can roundtrip*Unstructuredtype.Which issue this PR fixes:
Fixes #47889. Similar to #43346.
Special notes for your reviewer:
Without the fix the tests are failing:
Release note:
/kind bug
/sig api-machinery