-
Notifications
You must be signed in to change notification settings - Fork 263
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] Have kn
look up plugins on $PATH
by default
#1399
Comments
In principle I am not against this. As discussed in the QuickStart PR I have added the link to show that this is how plugins worked initially for However, as I recall, there was lots of discussions (which you can revive and re-read, if you want, by searching plugin related issues and PRs) that resulted in where we are. So essentially this rehashes past decisions. Since I've always been for look up in PATH as default --- simply because I wanted Good thing in all of this is that the implementation to make |
+1 to this - I never liked that we didn't look in the PATH to being with :-) |
+1 on looking in PATH like kubectl and oc plugins |
I like the idea of looking in |
That's not true, it's still need to be called |
I think we can allow a PATH lookup if we still can keep lookup from My proposal would be:
This would also allow for system-wide plugins as installed by brew in Also, for people that currently collect their plugins in Actually, that was also my suggestion anyway when I proposed it at that time as a compromise for a discussion that was more heated then need to be :) --> #269 (comment) |
Decided in the WG Call: Let's go with this approach as this is the kubectl behaviour plus some own extension that could be used (or not) and allows user-specific plugins. |
/assign |
Feature request
The
kn
client by default will look in$PATH
for plugins. This would mirror the performance ofkubectl
and provide an easier way for users to install plugins using tools likebrew
.Use case
This arose out of discussions about the quickstart plugin we're building. The goal of that plugin was to provide a streamlined experience for new users to get up and running on Knative by running something like:
However, the last command does not work, as
kn
by default does not look up plugins from$PATH
(which is wherebrew
installs them).See also disucssion in Slack and in the homebrew-kn-plugins repo.
/kind proposal
cc @omerbensaadon @csantanapr
The text was updated successfully, but these errors were encountered: