V1RollingUpdateDaemonSet maxUnavailable is 'String' but API specifies 'IntOrString'
See original GitHub issueV1beta2RollingUpdateDaemonSet
has IntOrString maxUnavailable
but V1RollingUpdateDaemonSet
has String 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.
spec.updateStrategy.rollingUpdate.maxUnavailable: Invalid value: intstr.IntOrString{Type:1, IntVal:0, StrVal:\"1\"}: a valid percent string must be a numeric string followed by an ending '%'
Issue Analytics
- State:
- Created 4 years ago
- Comments:12 (6 by maintainers)
Top Results From Across the Web
Specifying a Disruption Budget for your Application - Kubernetes
When you specify a percentage by setting the value to a string representation of ... You can specify only one of maxUnavailable and...
Read more >Index (client-java-api 2.0.0 API) - javadoc.io
Build a form-encoding request body with the given form parameters. buildRequestBodyMultipart(Map<String, Object>) - Method in class io.kubernetes.client.
Read more >Understanding the Available condition of a Kubernetes ...
Although the Kubernetes documentation is excellent, the API ... maxUnavailable is an optional field that specifies the maximum number of ...
Read more >Deployment [apps/v1] - apps | OpenShift Container Platform 3.11
/apis/apps/v1/deployments; /apis/apps/v1/namespaces/{namespace}/deployments ... This is a pointer to distinguish between explicit zero and not specified.
Read more >Kubernetes Rolling Update Configuration - Blue Matador
The ReplicaSet manages the number of running pods, and the Deployment ... Both maxSurge and maxUnavailable can be specified as either an ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
UPDATE: https://github.com/OpenAPITools/openapi-generator/pull/4182 will be fixing this
I have the same error with 5.0.0, so which version i can use to solve this problem, Thanks;