kubeswitch

command module
v1.5.6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 25, 2024 License: MIT Imports: 20 Imported by: 0

README

kubeswitch

Build Tag Go Version PkgGoDev Go Report Card

Switch your current kubernetes context and namespace graphically by selecting from a tree.
kubeswitch talks to the kubernetes API and does not depend on kubectl.

Demo

Note for Non-Admin Users: If you are a cluster tenant without API-permission to list namespaces, kubeswitch won't work for you (as it can't retrieve available namespaces). Sorry, there's not much we can do about that.

Install

Available for Linux and MacOS: Latest Release

Config

Read from the default location ~/.kube/config. If not present, the location is read from environment variable KUBECONFIG (remember to export). That env variable can contain multiple locations separated by : from where configs are merged together.

Run

Run... to...
kubeswitch select context/namespace graphically
kubeswitch <namespace> switch to namespace in current context quickly
kubeswitch <context> <namespace> switch to context/namespace
kubeswitch <context> . switch to default namespace of context

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL