-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
V1RollingUpdateDaemonSet maxUnavailable is 'String' but API specifies 'IntOrString' #721
Comments
This is weird. Looking at the Swagger I don't see any reason why this should be true, and yet there it is... This may be a bug in the code generator, we'll have to investigate more. |
sth must be wrong w/ the code-generator, the openapi spec from kubernetes cluster is correct. |
let me check if migrating to openapi-generator will solve the issue.. UPDATE: the openapi-generator doesn't actually solve this.. |
FWIW, I tried generating the code using the instructions in the README (even after deleting the old |
UPDATE: OpenAPITools/openapi-generator#4182 will be fixing this |
Issues go stale after 90d of inactivity. If this issue is safe to close now please do so with Send feedback to sig-testing, kubernetes/test-infra and/or fejta. |
Stale issues rot after 30d of inactivity. If this issue is safe to close now please do so with Send feedback to sig-testing, kubernetes/test-infra and/or fejta. |
/remove-lifecycle rotten |
Issues go stale after 90d of inactivity. If this issue is safe to close now please do so with Send feedback to sig-testing, kubernetes/test-infra and/or fejta. |
/lifecycle frozen |
This was fixed a while ago, but the issue wasn't closed. |
I have the same error with 5.0.0, so which version i can use to solve this problem, Thanks; |
this reason is because the k8s use the gson, but you app use the other json package, which can not convert the intOrString type, so you should define the json util to hanlde the intOrString type |
V1beta2RollingUpdateDaemonSet
hasIntOrString maxUnavailable
butV1RollingUpdateDaemonSet
hasString maxUnavailable
, even though the swagger.json specifies it as an IntOrString.This causes an issue that when trying to use the integer form for maxUnavailable, because the API assumes that if it is a string then it should be treated as a percentage.
The text was updated successfully, but these errors were encountered: