-
Notifications
You must be signed in to change notification settings - Fork 2k
Feat: Structurelize patch object #587
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
Feat: Structurelize patch object #587
Conversation
9a71f20
to
440d0ba
Compare
Did you change the code generator to do this? We need to make sure we can re-generate the code going forward... |
@brendandburns yep the change in generator is submitted here. kubernetes-client/gen#118. it's basically adding a type mapping to the xml configuration, i noticed the python client has already done the mapping for |
the endpoint for patch api endpoint is defined w/ structurelized schema but the pre-process script in the generator somehow omitted that. |
5ceafdf
to
38f5da1
Compare
kubernetes/src/main/java/io/kubernetes/client/custom/V1Patch.java
Outdated
Show resolved
Hide resolved
kubernetes/src/main/java/io/kubernetes/client/custom/V1Patch.java
Outdated
Show resolved
Hide resolved
kubernetes/src/main/java/io/kubernetes/client/custom/V1Patch.java
Outdated
Show resolved
Hide resolved
Cool. A couple of small comments and then I think this is good to go. |
38f5da1
to
71aa54c
Compare
lets get this in! |
this.value = value; | ||
} | ||
|
||
private String value; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: move this above the constructor.
throw new UnsupportedOperationException("deserializing patch data is not supported"); | ||
} | ||
} | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: delete empty line.
Sorry, a couple of additional nits... I'm going to lgtm, but can you address in a follow-up PR? Thanks! /lgtm |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: brendandburns, yue9944882 The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
…llow-up Follow-up of #587: addressing minor comments
@brendandburns we saw that many developers are trying to pass an object directly into the patch call, making this structurelized can prevent them from that. additionally, this pull moves the patch format consts into the custom.V1Patch, which makes it easier to find