Replies: 4 comments 11 replies
-
I like that we go forward with a maven/gradle plugin and Jackson. It should be much easier to create tests as we don't need something like googles compile-testing lib as I suggested in #5896. If the maintainers are fine with this strategy, please assign the corresponding issue to me: #5850 |
Beta Was this translation helpful? Give feedback.
-
Some background - it's been recognized for some time that there is some mismatch and overlap with Jackson functionality with the crd generator - #5600 #5324 (comment) and it's something that we've talked about informally well before these issues / comments. With the amount of activity hitting the crd generator it seemed wise to revisit this so that we are building on as solid of a foundation as possible. After seeing that a POC level of this code was working without too major of an effort, I decided to take it to the logical conclusion of fully removing the usage of sundrio - which the branch now is representative of. Even further thoughts, not in the comment above:
|
Beta Was this translation helpful? Give feedback.
-
Some Feedback on this comment in the code regarding validation rules:
This implementation came from me and I personally don't need that validation rule annotations from the getter and the field get merged together. With the old implementation it was just very easy to implement and if looking at other projects they supported it as well. I think we should define here a general strategy either supporting it or not. Suggestion: If a field and it's getter is annotated with the same non-repeatable annotation, the annotaion from the getter wins. |
Beta Was this translation helpful? Give feedback.
-
I've aligned the pr to main in preparation for creating the fork instead. This brings up another implementation difference. @matteriben jackson does not actually change the serialization type when using a non-string shape with a string property. I've updated the JsonSchemaTest test to expect strings, just so it will pass, but wanted to double check on the expectation - do you expect jackson to actually serialize as the shape type? And if so when deserializing, is the expectation also to rely on jackon's implicit type conversion / widening? |
Beta Was this translation helpful? Give feedback.
-
@shawkins has announced some important details on the future of the CRD-Generator in a PR comment.
He has also started with the refactoring:
https://github.com/fabric8io/kubernetes-client/tree/crd-generator-v7-development
I think here is a better place for further discussing it, so I created this topic.
Beta Was this translation helpful? Give feedback.
All reactions