-
Notifications
You must be signed in to change notification settings - Fork 216
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
chore: Install toolchain files to location provided in KUBEBUILDER_ASSETS if set #1756
base: main
Are you sure you want to change the base?
chore: Install toolchain files to location provided in KUBEBUILDER_ASSETS if set #1756
Conversation
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: javanthropus The full list of commands accepted by this bot can be found here.
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Welcome @javanthropus! |
Hi @javanthropus. Thanks for your PR. I'm waiting for a kubernetes-sigs member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. |
This PR has been inactive for 14 days. StaleBot will close this stale PR after 14 more days of inactivity. |
This is a stupid simple PR. Can we please get someone to take a quick look? It's like 5 minutes of work at most. |
Pull Request Test Coverage Report for Build 12399183286Details
💛 - Coveralls |
Fixes #N/A
Description
This allows the installation of toolchain files to an arbitrary path by setting the
KUBEBUILDER_ASSETS
environment variable. This was done in order to avoid the use of sudo in order to create and use a system path. Backward compatibility with the original method is preserved.How was this change tested?
I ran
make toolchain
both with and without setting theKUBEBUILDER_ASSETS
environment variable. Without it set, the default location of/usr/local/kubebuilder/bin
was used and I was prompted for my password by sudo. With it set to a path under my home directory, the indicated path was created without needing sudo, and all toolchain content was copied into place.I then ran
make test
withKUBEBUILDER_ASSETS
set to the path in my home directory and/usr/local/kubebuilder
deleted to prove that everything still works.By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.