-
Notifications
You must be signed in to change notification settings - Fork 369
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
Proposal: Simplify installation of krew as it makes adoption harder #405
Comments
Hey @laverya,
I will admit, that a one-line installation is nice. But it's not safe. |
Addressing each in turn:
A one line installation isn't safe. But it's not that far from what krew does today, either. |
There was a time that We might still find a way to do it. I own I agree with you, this is the cleanest approach, but we need to be able to get behind that safely.
We have been chatting with some SIG CLI folks that maybe we can provide a "placeholder" command named This is all unorthodox, however. "Placeholder commands", "kubectl installing things", or even "kubectl prompting" is practically unheard of. :) So to keep kubectl small and consistent I suspect this approach will be den |
An installer built into kubectl would be by far the best option (for krew adoption), but that feels like a big ask as you've said. |
How about distributing |
Please read #475. We don’t intend to allow other package managers just yet. |
Issues go stale after 90d of inactivity. If this issue is safe to close now please do so with Send feedback to sig-testing, kubernetes/test-infra and/or fejta. |
Stale issues rot after 30d of inactivity. If this issue is safe to close now please do so with Send feedback to sig-testing, kubernetes/test-infra and/or fejta. |
Rotten issues close after 30d of inactivity. Send feedback to sig-testing, kubernetes/test-infra and/or fejta. |
@fejta-bot: Closing this issue. In response to this:
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/test-infra repository. |
Today, to install a plugin on a new machine, the user has to install krew and then the plugin. The recommended process involves copying and running a script that downloads a tarball with curl, decompressing it, and then executing a binary from within that tarball. After this completes, the user is then to add krew to their PATH manually, and finally to install the desired plugin via krew.
I’d like to propose a solution where we integrate the krew and plugin install process into a single script that automatically detects the shell and injects the PATH addition into the relevant bashrc/zshrc/etc file.
This isn’t inherently more insecure than the current solution because both fundamentally involve executing untrusted code directly from the internet.
The advantages of this are having an easy, memorable install process (
curl https://krew.sh | bash
) and that’s faster and more extensible than the current setup.I’ve experimented with a prototype of this idea that’s currently available at krew.sh. There are a number of things that could be added to this - allowing the user to specify a prior krew version, for instance - but it functions at a basic level today.
I don’t think this should be the recommended, default, or only approach to installing krew. I’m proposing that this is created and hosted as a supported alternative to the current methods.
I think this will increase adoption of krew because developers will be able to give their customers a very easy, one line install as opposed to a multi-step process that involves copying scripts into the shell.
The text was updated successfully, but these errors were encountered: