-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Typo in Knative Quickstart #4261
Comments
/assign |
While the binary is named |
Hi @psschwei It didn't work for me. Following https://github.com/knative-sandbox/kn-plugin-quickstart/blob/release-0.3/README.md , the first thing I did was to try by placing it in ~/.config/kn/plugins. So I placed it in/usr/local/bin, which is already on the PATH as kn-quickstart. And my client kn version is v0.25. |
Couple of questions to help debug further:
|
Hi Paul, Thank you for taking it up. I am using Debian 11 Bullseye. I'v tried to reproduce whatever had happend. By repeating. With the executable kn-quickstart in ~/.config/kin/plugins, kn plugins list does show this plugin as placed. So, when I run kn quickstart kind, Running Knative Quickstart using Kind Error: creating cluster: existing cluster: check cluster: exit status 1 Flags: creating cluster: existing cluster: check cluster: exit status 1 To be sure, I did, $ sudo kn quickstart kind Clearly, that points me to expected usage. And of course, I took a quick look at [ https://github.com/knative/client/releases https://github.com/knative-sandbox/kn-plugin-quickstart/blob/release-0.3/README.md] too. These instructions doen't require that ~/.config/kin/plugins be placed on PATH too. And so, next, I placed it in /ur/local/bin as named kn-quickstart. And as I shared earlier, it works as we would load with shell. That is, $kn-quickstart kind It does so even if it is named quickstart. So, $quickstart kind I think what is happening is. Based on [ https://github.com/knative/client/blob/v0.25.0/CHANGELOG.adoc https://github.com/knative/client/pull/1422 https://github.com/knative/client/pull/1412 ]. In v0.25, they've deprecated plugin.path-lookup property of the client kn and enabled lookupPluginsInPath by default to make kn plugins behave as system-wide brew plugins as well. By even requiring ~/.config/kin/plugins to be on the PATH. It seems, it might not work in this manner for one who didn't install brew way ( brew install knative-sandbox/kn-plugins/quickstart) and/or doesn't use MacOS ( I'm sorry I am not aware if this system-wide plugins thing is available on GNU/Linux and could not find as well in this time.) So,at least, the README needs to be updated. |
Thanks for the response @rupipal .
I haven't run the plugin on Debian, but I can't think of any reason why that should cause any issues. I
Ok, this is good. That means that the plugin is being recognized by up by the
This looks like an error when checking if there was an existing Kind cluster on your machine. Basically, we're running
This makes sense, as
Yeah, we missed updating this section when we did the release. We got the update in this morning. The proper workflow should be to add the plugin to any directory on your
Just to confirm, did this work?
That is really strange that it works when running the binary directly but not via the
That's right, the newest release of the So, a couple more steps to troubleshoot. Can you run |
Hi Paul, I think running kn plugins list doesn't show kn recognizes a particular plugin. I haven't taken a look at the kn code; it is merely throwing up the list of plugins from ~/.config/kin/plugins because it has that property plugin.path-lookup (deprecated but not not disabled; it should lead kn to the list; something like that). For it to recognize a particular plugin, it should execute that plugin when its name is supplied as 1st argument on the command (here kn quickstart ) for a particular task that is specified as a 2nd argument (e.g. kn quickstart kind). Something like that. If this is not happening on my Debian 11 installation, it could/might be some other thing, but the fact is that the plugin is a full executable.Yes, it runs when placed in /usr/local/bin. $ kn-quickstart Usage: Available Commands: Flags: Use "kn-quickstart [command] --help" for more information about a command. That ouput shows it works standalone. It works and sets up a cluster called knative with namespace and sets up hello-world service that works and as per that knative quickstart. And I have deleted and again set up the cluster many times. The cluster works and sets up a kubernetes API server at an endpoint. I'm a bit short on time today; travelling outstation shortly. Will post those two outputs on Friday or Saturday. |
Hello Paul, Wait a sec :). It does work in /usr/local/bin like kn quickstart kind too. But with sudo. I think I didn't try sudo in the first few attempts. Here, $ sudo kn quickstart kind Knative Cluster kind-knative already installed.
🍿 Installing Knative Serving v0.25.0 ... So, that system-wide plugins thing (that is installing plugins in /usr/local/bin ) seems normal behaviour on Linux too. But all this points, to as tried to I explain earlier, quickstart seems to be a full executable and not merely a binary (e.g. a Java class loaded by an executing code). If I am correct, this is not uncommon for a plugin, unless we want it to behave merely as a binary. |
Hmm, that sounds like it might be the permissions on the file (?).
Yes, that's right. Plugins for the |
Hi @psschwei Thanks. I think, for me, the issue seems settled. It may be closed. |
|
No changes needed. Closing this issue. |
The command should be kn-quickstart (hyphen to be included) in the step "Install Knative and Kubernetes on a local Docker Daemon using..." under section 'Install the Knative "Quickstart" environment.' Here, https://knative.dev/docs/getting-started/ .
The text was updated successfully, but these errors were encountered: