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

⚠️ (go/v3-alpha) Makefile: install kustomize and controller-gen locally #1813

Merged

Conversation

estroz
Copy link
Contributor

@estroz estroz commented Nov 11, 2020

This PR modifies the Makefile so that it installs kustomize and controller-gen to <project root>/bin if they do not exist. Targets will always use these binaries instead of installing global binaries, which pollutes userspace. Users can still use their preferred binary by running

mkdir -p bin
ln -sf $(which $binary) bin/$binary

This PR also cleans up the top-level Makefile and scripts.

@k8s-ci-robot k8s-ci-robot added cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. size/L Denotes a PR that changes 100-499 lines, ignoring generated files. labels Nov 11, 2020
@k8s-ci-robot k8s-ci-robot requested a review from mengqiy November 11, 2020 06:36
@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: estroz

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 Nov 11, 2020
@estroz estroz force-pushed the chore/improve-tool-downloads branch 2 times, most recently from 5b324df to ecdff22 Compare November 11, 2020 07:38
'<project root>/bin', and always use these instead of global binaries
Copy link
Contributor

@Adirio Adirio left a comment

Choose a reason for hiding this comment

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

A small suggestion

Makefile Show resolved Hide resolved
generate_testdata.sh,test.sh: use 'command -v', which won't print
if a binary isn't found, over 'which' to avoid unnecessary error text
@estroz estroz force-pushed the chore/improve-tool-downloads branch from 11d4c8f to f4d30ae Compare November 11, 2020 20:05
@Adirio
Copy link
Contributor

Adirio commented Nov 11, 2020

/lgtm

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Nov 11, 2020
@k8s-ci-robot k8s-ci-robot merged commit 271d886 into kubernetes-sigs:master Nov 11, 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. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. lgtm "Looks good to me", indicates that a PR is ready to be merged. size/L Denotes a PR that changes 100-499 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants