-
Notifications
You must be signed in to change notification settings - Fork 65
Streamline make generate #118
Streamline make generate #118
Conversation
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: vincepri 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 |
Makefile
Outdated
$(CONTROLLER_GEN) object:headerFile=./hack/boilerplate.go.txt paths=./api/... | ||
|
||
# Generate manifests e.g. CRD, RBAC etc. | ||
.PHONY: generate-manifests | ||
generate-manifests: |
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.
This and generate-deepcopy need to depend on $(CONTROLLER_GEN)
just like generate does. They should be able to run independently of generate
.
@@ -64,20 +64,15 @@ run: generate fmt vet | |||
|
|||
# Install CRDs into a cluster | |||
.PHONY: install | |||
install: manifests | |||
install: generate |
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.
this only depends on generate-manifests
$(MAKE) generate-deepcopy | ||
|
||
# Generate deepcopy files. | ||
.PHONY: generate-deepcopy |
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.
this is missing the actual target name
needs a generate-deepcopy:
on the next line
8025542
to
ab39b63
Compare
Signed-off-by: Vince Prignano <[email protected]>
ab39b63
to
5bef887
Compare
/lgtm |
Signed-off-by: Vince Prignano [email protected]
What this PR does / why we need it:
This PR aligns this Makefile with the other Cluster API repositories, where
make generate
runs a bunch of*-generate
targets.Which issue(s) this PR fixes (optional, in
fixes #<issue number>(, fixes #<issue_number>, ...)
format, will close the issue(s) when PR gets merged):Fixes #
Special notes for your reviewer:
Please confirm that if this PR changes any image versions, then that's the sole change this PR makes.
Release note: