-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(krew): add krew manifest to manually setup plugin
- Loading branch information
1 parent
a475769
commit 8fb3a1a
Showing
3 changed files
with
80 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
# Setup kubectx and kubens | ||
|
||
|
||
manually install kubectx and kubens from manifest file | ||
this add autocomplete plugin capabilities | ||
|
||
```shell | ||
$ kubectl krew install --manifest=ns.yaml | ||
$ kubectl krew install --manifest=ctx.yaml | ||
``` | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
apiVersion: krew.googlecontainertools.github.com/v1alpha2 | ||
kind: Plugin | ||
metadata: | ||
name: ctx | ||
spec: | ||
homepage: https://github.com/ahmetb/kubectx | ||
shortDescription: Switch between contexts in your kubeconfig | ||
version: v0.9.5 | ||
description: | | ||
Also known as "kubectx", a utility to switch between context entries in | ||
your kubeconfig file efficiently. | ||
caveats: | | ||
If fzf is installed on your machine, you can interactively choose | ||
between the entries using the arrow keys, or by fuzzy searching | ||
as you type. | ||
See https://github.com/ahmetb/kubectx for customization and details. | ||
platforms: | ||
- selector: | ||
matchExpressions: | ||
- key: os | ||
operator: In | ||
values: | ||
- darwin | ||
- linux | ||
uri: https://github.com/ahmetb/kubectx/archive/v0.9.5.tar.gz | ||
sha256: c94392fba8dfc5c8075161246749ef71c18f45da82759084664eb96027970004 | ||
bin: kubectx | ||
files: | ||
- from: kubectx-*/kubectx | ||
to: . | ||
- from: kubectx-*/LICENSE | ||
to: . | ||
- from: kubectx-*/completion/plugins/kubectl_complete-ctx | ||
to: completion | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
apiVersion: krew.googlecontainertools.github.com/v1alpha2 | ||
kind: Plugin | ||
metadata: | ||
name: ns | ||
spec: | ||
homepage: https://github.com/ahmetb/kubectx | ||
shortDescription: Switch between Kubernetes namespaces | ||
version: v0.9.5 | ||
description: | | ||
Also known as "kubens", a utility to set your current namespace and switch | ||
between them. | ||
caveats: | | ||
If fzf is installed on your machine, you can interactively choose | ||
between the entries using the arrow keys, or by fuzzy searching | ||
as you type. | ||
platforms: | ||
- selector: | ||
matchExpressions: | ||
- key: os | ||
operator: In | ||
values: | ||
- darwin | ||
- linux | ||
uri: https://github.com/ahmetb/kubectx/archive/v0.9.5.tar.gz | ||
sha256: c94392fba8dfc5c8075161246749ef71c18f45da82759084664eb96027970004 | ||
bin: kubens | ||
files: | ||
- from: kubectx-*/kubens | ||
to: . | ||
- from: kubectx-*/LICENSE | ||
to: . | ||
- from: kubectx-*/completion/plugins/kubectl_complete-ns | ||
to: completion | ||
|