-
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: Allow manipulating registered types through unstructured #1662
Conversation
Currently, manipulating an object that is registered through unstructured will break all subsequent List requests that include said object. This happens because the tracker unconditionally saves objects but it's List() assumes that what it finds can be assigned to the .Items slice of an object produced through scheme.New(ListGVK).
/approve |
@joelanford was it intended to not lgtm the change and only approve? |
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.
/lgtm
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: alvaroaleman, joelanford, vincepri 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 |
This logic can be removed after upgrading to controller-runtime v0.10.1 Ref: kubernetes-sigs/controller-runtime#1662
This logic can be removed after upgrading to controller-runtime v0.10.1 Ref: kubernetes-sigs/controller-runtime#1662 Co-authored-by: qingliu <qingliu@alauda.io>
Hello, thanks for the fix :) I need to upgrade my packages to get this fix -- which version/package is this fixed in? I'm currently using:
|
Currently, manipulating an object that is registered through
unstructured will break all subsequent List requests that include said
object. This happens because the tracker unconditionally saves objects but
it's List() assumes that what it finds can be assigned to the .Items slice
of an object produced through scheme.New(ListGVK).
Fixes #1511
/assign @vincepri @joelanford