Skip to content

Correctly run controller-gen for new apis module#888

Merged
metal3-io-bot merged 1 commit intometal3-io:masterfrom
zaneb:apis-mod-generate
May 24, 2021
Merged

Correctly run controller-gen for new apis module#888
metal3-io-bot merged 1 commit intometal3-io:masterfrom
zaneb:apis-mod-generate

Conversation

@zaneb
Copy link
Copy Markdown
Member

@zaneb zaneb commented May 20, 2021

Fixes #875

@metal3-io-bot
Copy link
Copy Markdown
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: zaneb

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@metal3-io-bot metal3-io-bot added approved Indicates a PR has been approved by an approver from all required OWNERS files. size/S Denotes a PR that changes 10-29 lines, ignoring generated files. labels May 20, 2021
Because apis is in a separate go module now, we need to run
controller-gen on this module not on the main one. We don't want to make
the apis module depend on controller-gen, because the whole point is to
minimise dependencies. However, we can't use "go run" to across modules
because we can't switch modules between build and run.

Accordingly, split the build and run phases so that we can keep the
version information in the main module but run in the apis module.

Fixes metal3-io#875
@zaneb zaneb force-pushed the apis-mod-generate branch from 37103d6 to 98d8e53 Compare May 20, 2021 21:50
@kashifest
Copy link
Copy Markdown
Member

This looks good to me. I can close #877 in favor of this.

@zaneb
Copy link
Copy Markdown
Member Author

zaneb commented May 24, 2021

/test-integration

@zaneb zaneb requested review from kashifest and maelk May 24, 2021 15:10
@kashifest
Copy link
Copy Markdown
Member

/lgtm

@metal3-io-bot metal3-io-bot added the lgtm Indicates that a PR is ready to be merged. label May 24, 2021
@metal3-io-bot metal3-io-bot merged commit 6bd7a18 into metal3-io:master May 24, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

approved Indicates a PR has been approved by an approver from all required OWNERS files. lgtm Indicates that a PR is ready to be merged. size/S Denotes a PR that changes 10-29 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Gomod for public API broke controller-tools object generation

3 participants