From be0604b90c3fc4e1988d03bfa11908a3b5dc44cd Mon Sep 17 00:00:00 2001 From: bryan Date: Tue, 4 Jun 2024 22:12:31 +0800 Subject: [PATCH] add kubels v0.1.0 --- plugins/kubels.yaml | 30 ++++++++++++++++++++++++++++++ plugins/plslogs.yaml | 26 -------------------------- 2 files changed, 30 insertions(+), 26 deletions(-) create mode 100644 plugins/kubels.yaml delete mode 100644 plugins/plslogs.yaml diff --git a/plugins/kubels.yaml b/plugins/kubels.yaml new file mode 100644 index 0000000..f6e9e85 --- /dev/null +++ b/plugins/kubels.yaml @@ -0,0 +1,30 @@ +apiVersion: krew.googlecontainertools.github.com/v1alpha2 +kind: Plugin +metadata: + name: ls +spec: + homepage: https://git.qoobing.com/r/opensource/kubernetes/kubectl-plugins.git + shortDescription: Interactive list and select resource before execute kubectl. + version: "v0.1.0" + description: | + Interactive list and select resource before execute kubectl. + You don't need to 'copy' pod name(or something else) when you execute a kubectl command which need it. + Usage example: + kubectl ls get pod + kubectl ls get pod -n kube-system + kubectl ls exec -it -- bash + kubectl ls logs --tail 100 + platforms: + - selector: + matchExpressions: + - key: "os" + operator: "In" + values: + - darwin + - linux + uri: https://git.qoobing.com/public/download/kubels-v0.1.0.tar.gz + sha256: e21b141392356efe95c1113bd7e9c8a5e0044a6e1e182a248b08349fd40aca0f + bin: kubels + files: + - from: /kube*/* + to: . diff --git a/plugins/plslogs.yaml b/plugins/plslogs.yaml deleted file mode 100644 index d365958..0000000 --- a/plugins/plslogs.yaml +++ /dev/null @@ -1,26 +0,0 @@ -apiVersion: krew.googlecontainertools.github.com/v1alpha2 -kind: Plugin -metadata: - name: plslogs -spec: - homepage: https://git.qoobing.com/r/opensource/kubernetes/kubectl-plugins.git - shortDescription: "pls(pod list select) and then logs(kubectl logs)" - version: "v0.1.0" - description: | - Provide a simple tools for logs pod (without 'copy' pod name by youself). - It show a pod list first and after you choose one, - and it will execute 'kubectl logs --tail 100 -f $selectpod' - platforms: - - selector: - matchExpressions: - - key: "os" - operator: "In" - values: - - darwin - - linux - uri: https://git.qoobing.com/public/static/kubectl-plslogs-v0.1.0.tar.gz - sha256: de7a55d7b44a78f75885f3b5a97703b68ebf9fa6386940d40ab830b201da1161 - bin: plslogs.sh - files: - - from: /kubectl-*/* - to: .