-
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
Improve "Installing the Knative CLI" #2230
Conversation
Hi @MIBc. Thanks for your PR. I'm waiting for a knative 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/test-infra repository. |
/assign @rhuss |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@MIBc thanks a lot for your PR ! Really appreciated for taking care.
There are some issues though as pointed out below. We need to fix that, but I'm on PTO next week.
Please check with @navidshaikh in the meantime.
docs/install/install-kn.md
Outdated
You can run `kn` from container. For example: | ||
```bash | ||
docker pull https://gcr.io/knative-releases/knative.dev/client/cmd/kn | ||
docker run --rm --name <your-container-name> -v "$HOME/.kube/config:<your-kubeconfig-path>" gcr.io/knative-releases/knative.dev/client/cmd/kn:latest service list |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- No need to select a name (just leave that out)
- Instead of
<your-kubeconfig-path>
we need to provide the concrete directory.
Still have to figure that out, but @navidshaikh how is this image called in the tekton integration ?
In general it doesnt make sense to add placeholder in an installation intstructions if it is not explained what they should be (and of course shouldn't be added if not needed)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We don't need to touch anything for kubeconfig while working with tekton.
IMO, we should remove this command example and add a sub-section here for example: 'Using kn with Tekton' which links to the kn catalog task at https://github.com/tektoncd/catalog/tree/master/kn
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
May be we can both introduce Running kn in docker
and Running kn with tekton task
. For some users, they are not familiar with tekton.
2c9688b
to
7827f2a
Compare
Do you have more suggestion? @rhuss |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please see some suggestions inline. If you like I can help in the wording.
/ok-to-test |
@rhuss any more comments? Is this good to go? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good, thanks ! (and sorry for the delay).
In a followup PR we should also describe how to install with brew on macOS.
/lgtm
/assign @averikitsch |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/lgtm
/approve
/approve |
/assign @averikitsch |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@MIBc added some comments. Thanks for adding this PR 🙂
docs/install/install-kn.md
Outdated
@@ -26,6 +26,22 @@ To install the `kn` Client, you must download the executable binary for your sys | |||
|
|||
You must place the executable binary in your system path, and make sure that it is executable. | |||
|
|||
## Install `kn` using Go | |||
1. Building `kn` requires Go v1.13 or newer. You will first need a working Go environment. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Make this a prerequisite instead of step 1.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done.
docs/install/install-kn.md
Outdated
@@ -26,6 +26,22 @@ To install the `kn` Client, you must download the executable binary for your sys | |||
|
|||
You must place the executable binary in your system path, and make sure that it is executable. | |||
|
|||
## Install `kn` using Go | |||
1. Building `kn` requires Go v1.13 or newer. You will first need a working Go environment. | |||
1. Check out the [Client repository](https://github.com/knative/client). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
1. Check out the [Client repository](https://github.com/knative/client). | |
1. Check out the [Client repository](https://github.com/knative/client): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done.
docs/install/install-kn.md
Outdated
```bash | ||
hack/build.sh -f | ||
``` | ||
1. Move `kn` into your system path, and verify whether kn is working properly. For example: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
1. Move `kn` into your system path, and verify whether kn is working properly. For example: | |
1. Move `kn` into your system path, and verify that `kn` commands are working properly. For example: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done.
docs/install/install-kn.md
Outdated
@@ -34,3 +50,16 @@ Links to either the nightly container image or the latest stable container image | |||
|
|||
- [Nightly container image](https://gcr.io/knative-nightly/knative.dev/client/cmd/kn) | |||
- [Latest release](https://gcr.io/knative-releases/knative.dev/client/cmd/kn) | |||
|
|||
You can run `kn` from container. For example: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You can run `kn` from container. For example: | |
You can run `kn` from a container image. For example: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done.
docs/install/install-kn.md
Outdated
You can also [run kn using Tekton](https://github.com/tektoncd/catalog/tree/master/kn). | ||
|
||
## What's next | ||
Now that you have installed `kn` in your system. To learn more about `kn`, you can read our [document](https://github.com/knative/client/blob/master/docs/cmd/kn.md). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Now that you have installed `kn` in your system. To learn more about `kn`, you can read our [document](https://github.com/knative/client/blob/master/docs/cmd/kn.md). | |
To learn more about using `kn`, see the [documentation](https://github.com/knative/client/blob/master/docs/cmd/kn.md). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'd also add a comment here to make sure this gets updated to a link within the docs at some point, rather than the client repo. @rhuss cc'ing you since you might want to update this once there's a kn
reference section in docs.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for your comments.
@MIBc just checking in on the status of this one - any plans to update based on the comments? |
I will update it asap. |
@MIBc thanks for the changes, is this ready to merge now? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
one minor update, otherwise looks good for me now (sorry for the delay)
I a followup PR we should also document how to install via brew
on macOs. (See https://github.com/knative/homebrew-client)
docs/install/install-kn.md
Outdated
@@ -26,6 +26,22 @@ To install the `kn` Client, you must download the executable binary for your sys | |||
|
|||
You must place the executable binary in your system path, and make sure that it is executable. | |||
|
|||
## Install `kn` using Go | |||
**Prerequisite:** Building `kn` requires Go v1.13 or newer. You will first need a working Go environment. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's 1.14 now
docs/install/install-kn.md
Outdated
@@ -26,6 +26,22 @@ To install the `kn` Client, you must download the executable binary for your sys | |||
|
|||
You must place the executable binary in your system path, and make sure that it is executable. | |||
|
|||
## Install `kn` using Go | |||
**Prerequisite:** Building `kn` requires Go v1.13 or newer. You will first need a working Go environment. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
**Prerequisite:** Building `kn` requires Go v1.13 or newer. You will first need a working Go environment. | |
**Prerequisite:** Building `kn` requires Go v1.14 or newer. You will first need a working Go environment. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
* Make `install kn with Go` more detailed. * Give example on how to run kn using container.
/lgtm |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: abrennan89, lionelvillard, matzew, MIBc, rhuss The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Proposed Changes
install kn with Go
more detailed.Fixes #knative/client#648