Skip to content

Commit

Permalink
Fix hard link for Mac
Browse files Browse the repository at this point in the history
  • Loading branch information
aungzanbaw authored and tekton-robot committed Sep 20, 2024
1 parent e6357e2 commit 2b09efc
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 2 deletions.
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -183,6 +183,10 @@ After installing tkn, create a link as kubectl-tkn
```shell
ln -s /usr/local/bin/tkn /usr/local/bin/kubectl-tkn
```
For Mac OS X with Homebrew
```shell
ln -s $(brew --prefix)/opt/tektoncd-cli/bin/tkn /usr/local/bin/kubectl-tkn
```
Run the following to confirm tkn is available as a plugin:
```shell
kubectl plugin list
Expand Down
15 changes: 13 additions & 2 deletions docs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,10 @@ it from the source, or set it up as a [`kubectl` plugin](https://kubernetes.io/d
```bash
brew install tektoncd-cli
```
For Mac OS X with Homebrew
```bash
ln -s $(brew --prefix)/opt/tektoncd-cli/bin/tkn /usr/local/bin/kubectl-tkn
```

You can also download it as a tarball from the [`tkn` Releases page](https://github.com/tektoncd/cli/releases).
After downloading the file, extract it to your `PATH`:
Expand Down Expand Up @@ -140,11 +144,18 @@ To add `tkn` as a `kubectl` plugin, run the following commands:
# The following commands assumes that your `tkn` executable is available
# at /usr/local/bin/tkn. You may need to use a different value on your
# system.
ln -s /usr/local/bin/tkn /usr/local/bin/kubectl-tkn
kubectl plugin list
ln -s /usr/local/bin/tkn /usr/local/bin/kubectl-tkn
```

For Mac OS X with Homebrew
```bash
ln -s $(brew --prefix)/opt/tektoncd-cli/bin/tkn /usr/local/bin/kubectl-tkn
```

If configured correctly, you should see `tkn` listed in the output.
```bash
kubectl plugin list
```

## Usage

Expand Down

0 comments on commit 2b09efc

Please sign in to comment.