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. DetailsInstructions 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 |
rhuss
left a comment
There was a problem hiding this comment.
@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.
| 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.
- 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.
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.
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 |
rhuss
left a comment
There was a problem hiding this comment.
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? |
rhuss
left a comment
There was a problem hiding this comment.
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 |
|
/approve |
|
/assign @averikitsch |
abrennan89
left a comment
There was a problem hiding this comment.
@MIBc added some comments. Thanks for adding this PR 🙂
| 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.
Make this a prerequisite instead of step 1.
|
|
||
| ## 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.
| 1. Check out the [Client repository](https://github.com/knative/client). | |
| 1. Check out the [Client repository](https://github.com/knative/client): |
| ```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.
| 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: |
| - [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.
| You can run `kn` from container. For example: | |
| You can run `kn` from a container image. For example: |
| 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.
| 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.
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.
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? |
rhuss
left a comment
There was a problem hiding this comment.
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)
| 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. |
| 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.
| **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. |
* 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 DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Proposed Changes
install kn with Gomore detailed.Fixes #knative/client#648