IntOrString type broke in 0.16.2
See original GitHub issueDescribe the bug
It seems that in the latest tag 0.16.2 intOrString
type is broken again. In the 0.16.1 tag the IntOrString type was fixed.
Related issues:
- https://github.com/kubernetes-client/javascript/issues/666
- https://github.com/kubernetes-client/javascript/issues/675
Seems like this commit https://github.com/kubernetes-client/javascript/commit/1f79306db6d70d336319d1cb60941cd24eed300a undid the work done in this commit https://github.com/kubernetes-client/javascript/commit/d44fa64da440559b55f0b70f30271b9d3097f3d2
** Client Version **
0.16.2
To Reproduce
- Install version 0.16.1 and check file
@kubernetes/client-node/dist/gen/model/v1PodDisruptionBudgetSpec.d.ts
V1PodDisruptionBudgetSpec should look like this:
export declare class V1PodDisruptionBudgetSpec {
'maxUnavailable'?: IntOrString;
'minAvailable'?: IntOrString;
}
- Install version 0.16.2 and check file
@kubernetes/client-node/dist/gen/model/v1PodDisruptionBudgetSpec.d.ts
V1PodDisruptionBudgetSpec now looks like this, which removes the fixed type in 0.16.1
export declare class V1PodDisruptionBudgetSpec {
'maxUnavailable'?: object;
'minAvailable'?: object;
}
Expected behavior Generated type should be:
export declare class V1PodDisruptionBudgetSpec {
'maxUnavailable'?: IntOrString;
'minAvailable'?: IntOrString;
}
Environment (please complete the following information):
- OS: MacOs
- NodeJS Version 16
Issue Analytics
- State:
- Created 2 years ago
- Comments:5 (4 by maintainers)
Top Results From Across the Web
V1ServicePort with wrong type for targetPort #666 - GitHub
Describe the bug The "targetPort" type is defined as "object" while the possibility of values can be both number and string.
Read more >himenon/openapi-typescript-code-generator - npm package
This library provides TypeScript type definitions and extracted parameters from OpenAPI v3.0.x compliant specifications. TypeScript AST is used to generate ...
Read more >intstr - Go Packages
This method returns a scaled value from an IntOrString type. If the IntOrString is a percentage string value it's treated as a percentage...
Read more >Change log for 4.6.52
Merge of IntOrString type #83956; feat(scheduler): implement NodePreferAvoidPods as ... Update to rules_go 0.16.2 and gazelle 0.15.0 #70456 ...
Read more >@kubernetes/client-node: Versions | Openbase
Support for Kubernetes 1.22.x; Bug fix to support IntOrString types; Add List method to ... 0.16.2. 1 year ago ... Warning Breaking Changes...
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
0.16.3
has been pushed out to NPM.Weird, not sure what happened here, but I will fix it.