kgetcontext

command module
v0.0.0-...-8468e48 Latest Latest
Warning

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

Go to latest
Published: Nov 26, 2025 License: MPL-2.0 Imports: 10 Imported by: 0

README

= kgetcontext: get k8s current context and namespace

Reads the k8s kube config file and returns the current context and namespace.

It is faster than running:

----
kubectl config view --minify --output 'jsonpath={.contexts[].name}/{..namespace}' 2>/dev/null
----

Running the above command was slowing down my shell prompt.

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