-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
🐛 Fakeclient: preserve TypeMeta for PartialObjectMeta resources #2949
🐛 Fakeclient: preserve TypeMeta for PartialObjectMeta resources #2949
Conversation
Welcome @bigkevmcd! |
Hi @bigkevmcd. 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. |
/retitlte 🐛 Fakeclient: preserve TypeMeta for PartialObjectMeta resource Thanks! |
LGTM label has been added. Git tree hash: f1337f923acb7c5e990b4497c1848ee0e589ffdb
|
This updates the fake client to retain the PartialObjectMeta TypeMeta when getting resources.
36fab0f
to
e5bf04d
Compare
LGTM label has been added. Git tree hash: 2dfc12d5c018ebbdac53070db2aa0c5148ae1e64
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: alvaroaleman, bigkevmcd 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 |
/test pull-controller-runtime-test |
@bigkevmcd: Cannot trigger testing until a trusted user reviews the PR and leaves an 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. |
/ok-to-test |
@alvaroaleman @sbueringer did you all want this backported? 👀 /cherry-pick release-0.19 |
/cherry-pick release-0.18 |
@troy0820: new pull request created: #2951 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. |
@troy0820: new pull request created: #2952 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. |
Yeah let's backport. I think it's very unlikely that folks rely on PartialObjectMeta missing TypeMeta (or it should happen very very rarely). So the backport shouldn't have any negative effects |
This is currently failing because of this bug: kubernetes-sigs/controller-runtime#2949
This is currently failing because of this bug: kubernetes-sigs/controller-runtime#2949 Signed-off-by: Kevin McDermott <[email protected]>
This is currently failing because of this bug: kubernetes-sigs/controller-runtime#2949 Signed-off-by: Kevin McDermott <[email protected]>
This updates the fake client to retain the PartialObjectMeta TypeMeta when getting resources.
Fixes: #2923