From dd5c50bb161bdce72d43a5691e9e4877494a3fe1 Mon Sep 17 00:00:00 2001 From: Glenn Sommer Date: Thu, 24 Aug 2023 03:11:12 +0200 Subject: [PATCH 1/2] Add shell-ctx plugin --- plugins/shell-ctx.yaml | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 plugins/shell-ctx.yaml diff --git a/plugins/shell-ctx.yaml b/plugins/shell-ctx.yaml new file mode 100644 index 00000000000..fadaa109efd --- /dev/null +++ b/plugins/shell-ctx.yaml @@ -0,0 +1,30 @@ +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: "Kubernetes shell isolated context switcher" + description: | + Enabled each instance of a shell to operate in its own isolated Kubernetes context + caveats: | + 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 From 295065323db133fc648d08c5a5c0c2ff0f9c3f5b Mon Sep 17 00:00:00 2001 From: Glenn Sommer Date: Thu, 24 Aug 2023 03:18:38 +0200 Subject: [PATCH 2/2] Minor adjustments to description and caveats --- plugins/shell-ctx.yaml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/plugins/shell-ctx.yaml b/plugins/shell-ctx.yaml index fadaa109efd..374b9c24efd 100644 --- a/plugins/shell-ctx.yaml +++ b/plugins/shell-ctx.yaml @@ -7,8 +7,11 @@ spec: homepage: https://github.com/glemsom/shell-ctx shortDescription: "Kubernetes shell isolated context switcher" description: | - Enabled each instance of a shell to operate in its own isolated Kubernetes context + 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