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

chore: Install toolchain files to location provided in KUBEBUILDER_ASSETS if set #7238

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

javanthropus
Copy link

Also use sudo only when necessary to create the location

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 the KUBEBUILDER_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 with KUBEBUILDER_ASSETS set to the path in my home directory and /usr/local/kubebuilder deleted to prove that everything still works.

Does this change impact docs?

  • Yes, PR includes docs updates
  • Yes, issue opened: #
  • No

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

… set

Also use sudo only when necessary to create the location
@javanthropus javanthropus requested a review from a team as a code owner October 16, 2024 23:13
Copy link

netlify bot commented Oct 16, 2024

Deploy Preview for karpenter-docs-prod ready!

Name Link
🔨 Latest commit 0380a68
🔍 Latest deploy log https://app.netlify.com/sites/karpenter-docs-prod/deploys/67118c265144120008316076
😎 Deploy Preview https://deploy-preview-7238--karpenter-docs-prod.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

Copy link
Contributor

github-actions bot commented Nov 1, 2024

This PR has been inactive for 14 days. StaleBot will close this stale PR after 14 more days of inactivity.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant