Skip to content

Commit

Permalink
Add to kubectl plugin kc (#503)
Browse files Browse the repository at this point in the history
* Add to kubectl plugin kc
  • Loading branch information
astraw99 authored Aug 29, 2022
1 parent 2de01d0 commit 9468853
Show file tree
Hide file tree
Showing 7 changed files with 143 additions and 5 deletions.
54 changes: 54 additions & 0 deletions .krew.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
apiVersion: krew.googlecontainertools.github.com/v1alpha2
kind: Plugin
metadata:
name: kc
spec:
version: {{ .TagName }}
homepage: https://github.com/sunny0826/kubecm
shortDescription: "Easier management of kubeconfig."
description: |
This plugin provide easier management of kubeconfig.
We can 'list', 'switch', 'add' and 'delete' kubeconfig ctx more efficiently.
platforms:
- selector:
matchLabels:
os: darwin
arch: amd64
{{ addURIAndSha "https://github.com/sunny0826/kubecm/releases/download/{{ .TagName }}/kubecm_{{ .TagName }}_Darwin_x86_64.tar.gz" .TagName }}
bin: kubecm
- selector:
matchLabels:
os: darwin
arch: arm64
{{ addURIAndSha "https://github.com/sunny0826/kubecm/releases/download/{{ .TagName }}/kubecm_{{ .TagName }}_Darwin_arm64.tar.gz" .TagName }}
bin: kubecm
- selector:
matchLabels:
os: linux
arch: amd64
{{ addURIAndSha "https://github.com/sunny0826/kubecm/releases/download/{{ .TagName }}/kubecm_{{ .TagName }}_Linux_x86_64.tar.gz" .TagName }}
bin: kubecm
- selector:
matchLabels:
os: linux
arch: arm64
{{ addURIAndSha "https://github.com/sunny0826/kubecm/releases/download/{{ .TagName }}/kubecm_{{ .TagName }}_Linux_arm64.tar.gz" .TagName }}
bin: kubecm
- selector:
matchLabels:
os: linux
arch: 386
{{ addURIAndSha "https://github.com/sunny0826/kubecm/releases/download/{{ .TagName }}/kubecm_{{ .TagName }}_Linux_i386.tar.gz" .TagName }}
bin: kubecm
- selector:
matchLabels:
os: windows
arch: amd64
{{ addURIAndSha "https://github.com/sunny0826/kubecm/releases/download/{{ .TagName }}/kubecm_{{ .TagName }}_Windows_x86_64.tar.gz" .TagName }}
bin: kubecm.exe
- selector:
matchLabels:
os: windows
arch: 386
{{ addURIAndSha "https://github.com/sunny0826/kubecm/releases/download/{{ .TagName }}/kubecm_{{ .TagName }}_Windows_i386.tar.gz" .TagName }}
bin: kubecm.exe
17 changes: 17 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,23 @@ For full documentation, please visit the KubeCM website: [https://kubecm.cloud](

[![asciicast](https://asciinema.org/a/389595.svg)](https://asciinema.org/a/389595)

## Install
Using [Krew](https://krew.sigs.k8s.io/):

```bash
kubectl krew install kc
```

Using Homebrew:

```bash
brew install kubecm
```

Source binary:

[Download the library](https://github.com/sunny0826/kubecm/releases)

## Contribute

Feel free to open issues and pull requests. Any feedback is highly appreciated!
Expand Down
19 changes: 18 additions & 1 deletion docs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,10 +51,27 @@ Use "kubecm [command] --help" for more information about a command.

For full documentation, please visit the KubeVela website: [https://kubecm.cloud](https://kubecm.cloud)

## Video
## Demo

[![](https://tva3.sinaimg.cn/large/ad5fbf65gy1gij1pl0pn5j218o0p81kx.jpg)](https://www.bilibili.com/video/av88259938/)

## Install
Using [Krew](https://krew.sigs.k8s.io/):

```bash
kubectl krew install kc
```

Using Homebrew:

```bash
brew install kubecm
```

Source binary:

[Download the library](https://github.com/sunny0826/kubecm/releases)

## Contribute

Feel free to open issues and pull requests. Any feedback is highly appreciated!
Expand Down
21 changes: 19 additions & 2 deletions docs/en-us/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,11 +46,28 @@ Flags:
Use "kubecm [command] --help" for more information about a command.
```

# Demo
## Demo

<script id="asciicast-389595" src="https://asciinema.org/a/389595.js" async></script>

# Thanks
## Install
Using [Krew](https://krew.sigs.k8s.io/):

```bash
kubectl krew install kc
```

Using Homebrew:

```bash
brew install kubecm
```

Source Binary:

[Download the library](https://github.com/sunny0826/kubecm/releases)

## Thanks

- [JetBrains IDEs](https://www.jetbrains.com/?from=kubecm)

Expand Down
8 changes: 8 additions & 0 deletions docs/en-us/install.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,14 @@ Multiple installation paths are available.

<!-- tabs:start -->

#### ** Krew **

Using [Krew](https://krew.sigs.k8s.io/):

```bash
kubectl krew install kc
```

#### ** Homebrew **

```bash
Expand Down
21 changes: 19 additions & 2 deletions docs/zh-cn/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,11 +46,28 @@ Flags:
Use "kubecm [command] --help" for more information about a command.
```

# 视频
## 演示

<script id="asciicast-389595" src="https://asciinema.org/a/389595.js" async></script>

# 鸣谢
## 安装
Using [Krew](https://krew.sigs.k8s.io/):

```bash
kubectl krew install kc
```

Using Homebrew:

```bash
brew install kubecm
```

Source binary:

[Download the library](https://github.com/sunny0826/kubecm/releases)

## 鸣谢

- [JetBrains IDEs](https://www.jetbrains.com/?from=kubecm)

Expand Down
8 changes: 8 additions & 0 deletions docs/zh-cn/install.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,14 @@

<!-- tabs:start -->

#### ** Krew **

Using [Krew](https://krew.sigs.k8s.io/):

```bash
kubectl krew install kc
```

#### ** Homebrew **

```bash
Expand Down

0 comments on commit 9468853

Please sign in to comment.