-
Notifications
You must be signed in to change notification settings - Fork 17
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
Add @Buildable
annotation to all model classes for generating the Builder classes
#49
Conversation
…der classes Signed-off-by: Lukas Kral <[email protected]>
906594b
to
cd0ccb7
Compare
@Buildable
annotation to all model classes for generating the Builder classes
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.
I assume the second PR would be the modification of tests?
Signed-off-by: Lukas Kral <[email protected]>
Yes, I didn't want to include this in #48 and have it separated to other stuff. |
Signed-off-by: Lukas Kral <[email protected]>
@see-quick good point with the tests, changed them in this PR to use the new builders. |
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.
Doesn't Fabric8 have its own builders for the CRDs?
The Fabric8 has deps for building the CRDs (from POJOs) and the POJOs (from CRDs), but based on articles I read, these can be extended by Sundrio's extensions and annotations (because the deps are using Sundrio underneath) to generate the Builders. I will check that more, but from what I saw until now, that is the way how it is used now (but maybe I'm completely wrong of course). EDIT: the builders are generated during the POJOs generation (based on https://github.com/rohanKanojia/kubernetes-client-demo/blob/master/fabric8-crd-java-generator-demo/README.md). |
Other than the discussion about preventing javadoc warnings from failing the build these changes look good to me. I'll hold off approving until that is resolved though |
…anges Signed-off-by: Lukas Kral <[email protected]>
Signed-off-by: Lukas Kral <[email protected]>
Signed-off-by: Lukas Kral <[email protected]>
Signed-off-by: Lukas Kral <[email protected]>
Signed-off-by: Lukas Kral <[email protected]>
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.
LGTM assuming it wortks.
@im-konge what was the reasoning for putting StatusUtils and StatusUtilsTest inside the I'm also wondering whether the |
@katheris the reason I moved the Maybe it should not be there and it should be done a bit differently, but I guess that's something that should be changed in some other PR (I'm fine with changing it, but I don't want to make the scope of the PR bigger and bigger).
Sure I can change it as well if there is a better name. |
Co-authored-by: Maros Orsak <[email protected]> Signed-off-by: Lukáš Král <[email protected]>
@im-konge ah thanks, that makes sense, yeah lets leave it there for now |
This PR adds
@Buildable
annotation to the model Classes, so theBuilder
,Fluent
, andFluentImpl
classes are generated during the project build.The
Builder
classes are used for testing purposes, but also for creating theKafkaAccess
CR using Java code (and not just YAMLs).Finally, it changes the tests to use these new builders.