-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Object loses TypeMeta after Patch #526
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
Comments
/cc @DirectXMan12 |
@liggitt do you have any advice for a reasonable fix here? We could have controller-runtime record the GVK pre-patch, then restore it using |
I'm not familiar with these client methods... where is it clearing the GVK? |
@smarterclayton I'm not familiar with the full client stack, but this may be the direct encoder/decoder dropping GVK on decode. There are a couple related issues:
|
@liggitt I'm guessing you came to the same/similar conclusion as kubernetes/apimachinery#19 with your new issue #80609? |
yes |
I have this code in a defer function running in a Reconciler:
which fails with the following error
I added some
spew.Dump
lines between the updates and it seems that the first Patch that goes through (no matter the order) makes the original object to lose TypeMeta.Before
After:
Probably related to #406
The text was updated successfully, but these errors were encountered: