Skip to content
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 config support in codegen #92

Merged
merged 2 commits into from Jun 6, 2020

Conversation

digambar15
Copy link
Contributor

Add all config files in codegen scripts.

Fixes #13

@metal3-io-bot metal3-io-bot added the size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. label Jun 5, 2020
hack/codegen.sh Outdated
@@ -10,7 +10,7 @@ if [ "${IS_CONTAINER}" != "false" ]; then
export XDG_CACHE_HOME=/tmp/.cache
eval "$(go env)"
cd "${GOPATH}"/src/github.com/metal3-io/cluster-api-provider-metal3
INPUT_FILES="api/v1alpha2/zz_generated.*.go api/v1alpha3/zz_generated.*.go api/v1alpha4/zz_generated.*.go baremetal/mocks/zz_generated.*.go"
INPUT_FILES="config/certmanager/*.yaml config/crd/*.yaml config/crd/bases/*.yaml config/crd/patches/*.yaml config/default/*.yaml config/ipam/*.yaml config/manager/*.yaml config/rbac/*.yaml config/webhook/*.yaml config/*.yaml api/v1alpha2/zz_generated.*.go api/v1alpha3/zz_generated.*.go api/v1alpha4/zz_generated.*.go baremetal/mocks/zz_generated.*.go"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can you break this ?

Suggested change
INPUT_FILES="config/certmanager/*.yaml config/crd/*.yaml config/crd/bases/*.yaml config/crd/patches/*.yaml config/default/*.yaml config/ipam/*.yaml config/manager/*.yaml config/rbac/*.yaml config/webhook/*.yaml config/*.yaml api/v1alpha2/zz_generated.*.go api/v1alpha3/zz_generated.*.go api/v1alpha4/zz_generated.*.go baremetal/mocks/zz_generated.*.go"
INPUT_FILES="\
config/certmanager/*.yaml \
config/crd/*.yaml \
config/crd/bases/*.yaml \
config/crd/patches/*.yaml \
config/default/*.yaml \
config/ipam/*.yaml \
config/manager/*.yaml \
config/rbac/*.yaml \
config/webhook/*.yaml \
config/*.yaml \
api/v1alpha2/zz_generated.*.go \
api/v1alpha3/zz_generated.*.go \
api/v1alpha4/zz_generated.*.go \
baremetal/mocks/zz_generated.*.go"

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

okay

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done!

@metal3-io-bot metal3-io-bot added size/S Denotes a PR that changes 10-29 lines, ignoring generated files. and removed size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. labels Jun 5, 2020
@maelk
Copy link
Member

maelk commented Jun 5, 2020

/test-v1a4-integration

@maelk
Copy link
Member

maelk commented Jun 6, 2020

/approve
/lgtm

@metal3-io-bot metal3-io-bot added the lgtm Indicates that a PR is ready to be merged. label Jun 6, 2020
@metal3-io-bot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: digambar15, maelk

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

The pull request process is described here

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 the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Jun 6, 2020
@metal3-io-bot metal3-io-bot merged commit 73d4271 into metal3-io:master Jun 6, 2020
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.

Speed up unit tests
3 participants