Skip to content

Commit

Permalink
Fix the error when watch controller (#34)
Browse files Browse the repository at this point in the history
* Fix the error when watch controller

* Add descriptioin about how to install
  • Loading branch information
LinuxSuRen authored Jan 22, 2021
1 parent 4e2cbfb commit 2f352af
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 2 deletions.
12 changes: 12 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,18 @@

It's also [a plugin of kubectl](https://github.com/kubernetes-sigs/krew).

# Get started

Install it via: `brew install linuxsuren/linuxsuren/ks`

Install it via [hd](https://github.com/linuxsuren/http-downloader):

```
hd get linuxsuren/ks/kubectl-ks -o ks.tar.gz --thread 10
tar xzvf ks.tar.gz
mv kubectl-ks /usr/local/bin/
```

# Features

All features below work with [Kubesphere](https://github.com/kubsphere/kubesphere) instead of other concept.
Expand Down
4 changes: 2 additions & 2 deletions kubectl-plugin/component/watch.go
Original file line number Diff line number Diff line change
Expand Up @@ -80,9 +80,9 @@ func (o *WatchOption) watchPreRunE(cmd *cobra.Command, args []string) (err error
o.WatchImage = "kubespheredev/ks-apiserver"
}
case "ctl", "ctrl", "controller":
o.WatchDeploy = "ks-controller"
o.WatchDeploy = "ks-controller-manager"
if o.WatchImage == "" {
o.WatchImage = "ks-controller-manager"
o.WatchImage = "kubespheredev/ks-controller-manager"
}
case "console":
o.WatchDeploy = "ks-console"
Expand Down

0 comments on commit 2f352af

Please sign in to comment.