Skip to content
This repository was archived by the owner on Jul 30, 2021. It is now read-only.

Streamline make generate #118

Merged

Conversation

vincepri
Copy link
Contributor

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:


@k8s-ci-robot k8s-ci-robot added the cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. label Aug 13, 2019
@k8s-ci-robot
Copy link
Contributor

[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 /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@k8s-ci-robot k8s-ci-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Aug 13, 2019
@k8s-ci-robot k8s-ci-robot added the size/S Denotes a PR that changes 10-29 lines, ignoring generated files. label Aug 13, 2019
Makefile Outdated
$(CONTROLLER_GEN) object:headerFile=./hack/boilerplate.go.txt paths=./api/...

# Generate manifests e.g. CRD, RBAC etc.
.PHONY: generate-manifests
generate-manifests:
Copy link
Contributor

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
Copy link
Contributor

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
Copy link
Contributor

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

@k8s-ci-robot k8s-ci-robot added the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Aug 13, 2019
@vincepri vincepri force-pushed the cleanup-makefile-generate branch from 8025542 to ab39b63 Compare August 13, 2019 18:30
@k8s-ci-robot k8s-ci-robot removed the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Aug 13, 2019
Signed-off-by: Vince Prignano <[email protected]>
@vincepri vincepri force-pushed the cleanup-makefile-generate branch from ab39b63 to 5bef887 Compare August 13, 2019 18:58
@detiber
Copy link
Contributor

detiber commented Aug 13, 2019

/lgtm

@k8s-ci-robot k8s-ci-robot added the lgtm Indicates that a PR is ready to be merged. label Aug 13, 2019
@k8s-ci-robot k8s-ci-robot merged commit d056546 into kubernetes-retired:master Aug 13, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. 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.

4 participants