-
Notifications
You must be signed in to change notification settings - Fork 71
Fix panic on pointer to embedded struct #173
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
|
Thanks for your pull request. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA). 📝 Please follow instructions at https://git.k8s.io/community/CLA.md#the-contributor-license-agreement to sign the CLA. It may take a couple minutes for the CLA signature to be fully registered; after that, please reply here with a new comment and we'll verify. Thanks.
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. I understand the commands that are listed here. |
|
Welcome @christarazi! |
|
Hi @christarazi. 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. |
The intention of using this library is to utilize the facility to convert Kubernetes objects to `unstructured.Unstructured`. Previously, we were doing this by hand. For an explanation for why we are using a fork, read below. This commit migrates our use of sigs.k8s.io/structured-merge-diff/v4 over to the fork at github.com/christarazi/structured-merge-diff/v4 because of kubernetes-sigs/structured-merge-diff#172. The fork contains the fix (kubernetes-sigs/structured-merge-diff#173) which we are vendoring in. Once the issue is fixed or the upstream PR is merged, we can revert back to using the original library. Signed-off-by: Chris Tarazi <[email protected]>
|
/assign @jpbetz |
|
/ok-to-test |
|
The fix looks right to me. Would you add a test to ensure this doesn't get broken in the future? It should be as simple as adding a new tests struct and case here:
|
The intention of using this library is to utilize the facility to convert Kubernetes objects to `unstructured.Unstructured`. Previously, we were doing this by hand. For an explanation for why we are using a fork, read below. This commit migrates our use of sigs.k8s.io/structured-merge-diff/v4 over to the fork at github.com/christarazi/structured-merge-diff/v4 because of kubernetes-sigs/structured-merge-diff#172. The fork contains the fix (kubernetes-sigs/structured-merge-diff#173) which we are vendoring in. Once the issue is fixed or the upstream PR is merged, we can revert back to using the original library. Signed-off-by: Chris Tarazi <[email protected]>
|
@christarazi what's the status on this? |
|
@timebertt Apologies, yes this is still on my radar. Just trying to find the time :). Hopefully in the next week or so. |
Signed-off-by: Chris Tarazi <[email protected]>
1cc6019 to
763ad4e
Compare
This commit converts an embedded struct into its original type if it is a pointer. Fixes: kubernetes-sigs#172 Signed-off-by: Chris Tarazi <[email protected]>
763ad4e to
076ef8d
Compare
|
I signed it |
|
/unassign |
|
ping @jpbetz |
|
/kind bug @jpbetz, could you please recheck? |
|
/lgtm |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: apelisse, christarazi 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 |
Cherry pick of #173: Fix panic on pointer to embedded struct
…-struct Cherry pick of #173: Fix panic on pointer to embedded struct
This updates the dependency to 9f9c77085dec, as it was previously a temporary fork. This includes the fix to kubernetes-sigs/structured-merge-diff#173. At the time of this commit, there hasn't been a release made including this fix, so we are explicitly using the latest commit. Signed-off-by: Chris Tarazi <[email protected]>
This updates the dependency to 9f9c77085dec, as it was previously a temporary fork. This includes the fix to kubernetes-sigs/structured-merge-diff#173. At the time of this commit, there hasn't been a release made including this fix, so we are explicitly using the latest commit. Signed-off-by: Chris Tarazi <[email protected]>
This updates the dependency to 9f9c77085dec, as it was previously a temporary fork. This includes the fix to kubernetes-sigs/structured-merge-diff#173. At the time of this commit, there hasn't been a release made including this fix, so we are explicitly using the latest commit. Signed-off-by: Chris Tarazi <[email protected]>
Following a new release which includes kubernetes-sigs/structured-merge-diff#173, we no longer need to pin to a commit on master. Update to use an officially released version. Signed-off-by: Chris Tarazi <[email protected]>
Following a new release which includes kubernetes-sigs/structured-merge-diff#173, we no longer need to pin to a commit on master. Update to use an officially released version. Signed-off-by: Chris Tarazi <[email protected]>
[ upstream commit 28a8b47 ] This updates the dependency to 9f9c77085dec, as it was previously a temporary fork. This includes the fix to kubernetes-sigs/structured-merge-diff#173. At the time of this commit, there hasn't been a release made including this fix, so we are explicitly using the latest commit. Signed-off-by: Chris Tarazi <[email protected]> Signed-off-by: André Martins <[email protected]>
[ upstream commit 28a8b47 ] This updates the dependency to 9f9c77085dec, as it was previously a temporary fork. This includes the fix to kubernetes-sigs/structured-merge-diff#173. At the time of this commit, there hasn't been a release made including this fix, so we are explicitly using the latest commit. Signed-off-by: Chris Tarazi <[email protected]> Signed-off-by: André Martins <[email protected]>
This PR converts an embedded struct into its original type if it is
a pointer.
Fixes: #172