Add api generation in make generate#877
Conversation
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: kashifest 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 |
b31001f to
bbedcab
Compare
f08c8f2 to
b25e297
Compare
|
/test-integration |
|
I think that this could be a reasonable approach until we'll keep the two go.mod separated. Probably not something that will scale well, but for now seems enough. /lgtm |
|
@andfasano But this brings new dep for API Also note that version of controller tools are different v0.5.0 VS v0.4.1 in core go.mod I do not think that this is acceptable, controller-tools version should be same across whole repo |
I can change that |
b25e297 to
967b3fb
Compare
|
New changes are detected. LGTM label has been removed. |
749d4ed to
89ec3c2
Compare
89ec3c2 to
849a03a
Compare
849a03a to
74d6219
Compare
|
/test-integration |
| @@ -131,11 +131,13 @@ deploy: manifests ## Deploy controller in the configured Kubernetes cluster in ~ | |||
| .PHONY: manifests | |||
| manifests: ## Generate manifests e.g. CRD, RBAC etc. | |||
| $(CONTROLLER_GEN) $(CRD_OPTIONS) rbac:roleName=manager-role webhook paths="./..." output:crd:artifacts:config=config/crd/bases | |||
There was a problem hiding this comment.
AFAIK everything we need to generate is always in the apis directory, isn't it? I think we could remove this line (and the equivalent below).
That would at least solve the problem of trying to keep the controller-gen version the same in two different go.mod files.
There was a problem hiding this comment.
|
I opened #888 to do this without having to add dependencies to the apis module, so closing in favour of that per Kashif's comment #888 (comment). |
|
@zaneb: Closed this PR. DetailsIn response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
This PR adds api generation in generate Make target
Fixes #875