-
Notifications
You must be signed in to change notification settings - Fork 486
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
Makefile: add api-docs to bundle rule #2544
Makefile: add api-docs to bundle rule #2544
Conversation
5764d48
to
a5162bd
Compare
Makefile
Outdated
@@ -192,7 +192,7 @@ lint: golangci-lint | |||
|
|||
# Generate code | |||
.PHONY: generate | |||
generate: controller-gen | |||
generate: api-docs controller-gen |
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.
the api-docs
traget was remvoed from generate to improve developer UX by minimizing local changes when developing the operator. #2421
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.
Was that actually necessary? api-docs
is a noop if you haven't made any changes impacting the docs, so it should be fine to have it here.
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.
What does the generate update? Is it the deepcopy?
I think the api-docs generate should be bundled with the target to generate CRD
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.
generate
only generates the deepcopy code, yes.
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.
But I do agree that api-docs
should be a part of bundle
rather than generate
.
Signed-off-by: Benedikt Bongartz <[email protected]>
a5162bd
to
6612838
Compare
Signed-off-by: Benedikt Bongartz <[email protected]>
Description:
Link to tracking Issue:
Testing:
Documentation: