Simple Plugin to display/change the current kube context in your KUBECONFIG.
go version >= 1.11 with modules support enabled is required to build the plugin from source
export GO111MODULES=on
go build
Binary must be placed anywhere in $PATH
named kubectl-ctx
with execute permissions.
For further information, see the offical documentation on plugins here.
Known to work on Windows and Linux. Requires kubectl >= 1.12 (tested with 1.12).
Current context is displayed in a different color.
$ kubectl ctx
foo
bar
baz
$ kubectl ctx foo
current context set to "foo"