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
CR scale subresources update request fails when using non-storage version's endpoint #68035
Comments
/sig api-machinery |
This is much deeper in apimachinery than #68038 suggests. It's again a case of machinery conversion code which thinks that in=Unstructured, out=Unstructured implies same GVK. Obviously this is wrong. But the code (versioning decoder in this case) skips another CR conversion step. |
I attempted to recreate this against master and was unable to... PUT requests to the /status subresource for both versions worked as expected for me |
Only scale has a problem as far as I see. |
You're right. I had status integration test fail for different reason. Updated the issue topic and comment |
/area custom-resources |
@roycaihw: You must be a member of the kubernetes/kubernetes-milestone-maintainers github team to set the milestone. 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/test-infra repository. |
/priority critical-urgent critical to CRD conversion |
/remove-priority important-soon |
/milestone clear This is related to CRD webhook versioning feature which has been pushed back to v1.13. |
Is this a BUG REPORT or FEATURE REQUEST?:
/kind bug
What happened:
When trying to update a CR's scale subresource, the update request fails if the CRD has multiple versions and the request is sent to a non-storage versions's endpoint.
What you expected to happen:
The update request succeed.
How to reproduce it (as minimally and precisely as possible):
roycaihw@71b7f5d In CRD integration subresources_test, add a second version (v1) to the CRD and mark it as the storage version. The test
TestScaleSubresource
still exercises on the top level version (v1beta1) and fails with:Anything else we need to know?:
Environment:
kubectl version
): from master branch HEADuname -a
):/assign @mbohlool
cc @sttts
The text was updated successfully, but these errors were encountered: