diff --git a/plugins/cs.yaml b/plugins/cs.yaml new file mode 100644 index 00000000000..d807907ffa2 --- /dev/null +++ b/plugins/cs.yaml @@ -0,0 +1,67 @@ +apiVersion: krew.googlecontainertools.github.com/v1alpha2 +kind: Plugin +metadata: + name: cs +spec: + version: v0.1.0 + homepage: https://github.com/dodevops/kc + platforms: + - selector: + matchLabels: + os: darwin + arch: amd64 + uri: https://github.com/dodevops/kc/releases/download/v0.1.0/kubectl-cs-darwin-amd64.tar.gz + sha256: 96d53c2addc6d7d1e6ee732543a93545f499c149e830cbc59c9cf5633de7663b + bin: kubectl-cs + - selector: + matchLabels: + os: darwin + arch: arm64 + uri: https://github.com/dodevops/kc/releases/download/v0.1.0/kubectl-cs-darwin-arm64.tar.gz + sha256: 90edc7c83c0913b195bd1e906a1ed0d580107bf07b847258f82ebe905f08eaba + bin: kubectl-cs + - selector: + matchLabels: + os: windows + arch: amd64 + uri: https://github.com/dodevops/kc/releases/download/v0.1.0/kubectl-cs-windows-amd64.tar.gz + sha256: c256c8424560ec99a60c722ec7219099152eb709b0928df9465f89a34c881505 + bin: kubectl-cs + - selector: + matchLabels: + os: windows + arch: arm64 + uri: https://github.com/dodevops/kc/releases/download/v0.1.0/kubectl-cs-windows-arm64.tar.gz + sha256: 9c913cbea642b36986d97f5d45a132abf8791dadaa49f5accca34082022a4858 + bin: kubectl-cs + - selector: + matchLabels: + os: linux + arch: amd64 + uri: https://github.com/dodevops/kc/releases/download/v0.1.0/kubectl-cs-linux-amd64.tar.gz + sha256: a54393d1102d1cb75c62cbb8725be892cecdbf65274f7bc549a40cef84f460c0 + bin: kubectl-cs + - selector: + matchLabels: + os: linux + arch: arm64 + uri: https://github.com/dodevops/kc/releases/download/v0.1.0/kubectl-cs-linux-arm64.tar.gz + sha256: 1b95f7835f7c659b87a5d4a442acaae6819ee1b370cbc180f82995011d190de7 + bin: kubectl-cs + shortDescription: Quick Kubernetes context switcher + description: | + Usage: + kubectl cs [--only-current-context] [target] + Run `kubectl cs` to switch to a Kubernetes context and/or namespace. You can directly specify the context to switch to + in the form of `context:namespace`. If you leave either of the two parts empty, it will only change the remaining part. + + Examples: + + * `kubectl cs int:` - Switch to the currently active namespace in the `int` context + * `kubectl cs :kube-system` - Switch to the namespace `kube-system` in the currently active context + * `kubectl cs int:kube-system` - Switch to the namespace `kube-system` in the `int` context + + If you don't specify anything, `kubectl cs` will present a selection list of all namespaces in all contexts, which can + be filtered and selected. If that takes too long, the flag `--only-current-context` can be used, which only enumerates + the namespaces of the current context. +