Ahmet Alp Balkan 5933a7bbf8 Add zsh completion script (finally)
Signed-off-by: Ahmet Alp Balkan <ahmetb@google.com>
2017-04-26 09:39:24 -07:00
2017-03-29 00:30:12 -07:00
2017-03-28 17:24:14 -07:00
2017-04-04 12:41:33 -07:00

kubectx(1)

kubectx is an utility to manage and switch between kubectl(1) contexts.

USAGE:
  kubectx                   : list the contexts
  kubectx <NAME>            : switch to context
  kubectx -                 : switch to the previous context
  kubectx <NEW_NAME>=<NAME> : create alias for context
  kubectx -h,--help         : show this message

Purpose of this project is to provide an utility and facilitate discussion about how kubectl can manage contexts better.

Example

$ kubectx minikube
Switched to context "minikube".

$ kubectx -
Switched to context "oregon".

$ kubectx -
Switched to context "minikube".

$ kubectx dublin=gke_ahmetb_europe-west1-b_dublin
Context "dublin" set.
Aliased "gke_ahmetb_europe-west1-b_dublin" as "dublin".

Set up bash and zsh completion →

Help wanted

  • homebrew formula/tap that installs the script and completions

Disclaimer: This is not an official Google product.

Description
Faster way to switch between clusters and namespaces in kubectl
Readme Apache-2.0 1.6 MiB
Languages
Go 81%
Shell 19%