For Quantity class adding a no-arg constructor#930
For Quantity class adding a no-arg constructor#930ZP-AlwaysWin wants to merge 1 commit intokubernetes-client:masterkubernetes-client/java:masterfrom
Conversation
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: ZP-AlwaysWin The full list of commands accepted by this bot can be found here. DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
|
/assign @brendandburns |
yue9944882
left a comment
There was a problem hiding this comment.
plz use io.kubernetes.client.util.Yaml as the decoder instead of com.esotericsoftware.yamlbeans.YamlReader. the former has a set of custom serializers for kubernetes specific types
This doesn't seem to solve my problem. How can I convert V1Container |
|
You can use |
|
OK, that solves my problem perfectly。 |
|
Closing since the issue is resolved. |
I want to use reflection to parse the content in Yaml into the Quantity class, but I always get an error, so I want to add a parameterless constructor to this class
demo.yaml
DemoYaml.java
exception