-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
The fake client Status().Update() should not store object meta #2474
Comments
The same is true of labels. |
/kind support |
This also doesn’t seem to test |
Sorry, I was changing some variable names to make it less specific to my situation and missed one. |
v0.15.2 |
I've modified the fake client test suite to show an example: https://github.com/kubernetes-sigs/controller-runtime/pull/2475/files |
|
/kind bug Thanks for updating the issue. |
I'm trying to see if this is true for only core types and not custom resource types. Not to say that you shouldn't be able to use this on core types but it will help to understand the scope of this. There is a test where unstructured.Unstructured works as you would expect. client-go has a fake with updateStatus that handles this. @sbueringer @alvaroaleman any ideas? |
I noticed this issue while working with a custom resource type. |
@berlin-ab The PR will hopefully address the issue with the test case you provided. The other issue you mentioned may be coupled with issue #2478 as well. |
@troy0820 Thanks for the really quick response. I really appreciate that this fake client has folks helping to make it more real/correct. |
This test fails when using a real client, but succeeds when using the fake client.
The text was updated successfully, but these errors were encountered: