Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add shell-ctx plugin #3326

Merged
merged 3 commits into from
Aug 25, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
33 changes: 33 additions & 0 deletions plugins/shell-ctx.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
apiVersion: krew.googlecontainertools.github.com/v1alpha2
kind: Plugin
metadata:
name: shell-ctx
spec:
version: "v1.0.2"
homepage: https://github.com/glemsom/shell-ctx
shortDescription: "Shell independent context switching"
description: |
Enabled each instance of a shell to operate in its own isolated Kubernetes context.
Supported shells: bash, zsh and fish.
caveats: |
Requirements: bash, awk, sed, fzf and kubectl

To setup this plugin, please install the required shell-hook.
For details see:
kubectl shell-ctx -h
platforms:
- selector:
matchExpressions:
- key: "os"
operator: "In"
values:
- darwin
- linux
uri: https://github.com/glemsom/shell-ctx/archive/refs/tags/v1.0.2.zip
sha256: 541977b3e4060e6a350aa1b62a2e6c2ff1085fd7fe86fd5d1f965759bc3bdbd3
files:
- from: "shell-ctx-*/kubectl-shell_ctx"
to: "."
- from: "shell-ctx-*/LICENSE"
to: "."
bin: kubectl-shell_ctx