Skip to content
This repository has been archived by the owner on Feb 7, 2023. It is now read-only.

chrischdi/k8s-ctx-import

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

k8s-ctx-import

Build Status

k8s-ctx-import is an utility to merge kubernetes contexts to a single kubeconfig.

$ k8s-ctx-import -h
`k8s-ctx-import` is an utility to merge kubernetes contexts to a single kubeconfig.
It imports the context either to `~/.kube/config` or to the file defined by the `KUBECONFIG` environment variable.
Usage of k8s-ctx-import:
  -force
        force import of context
  -h
  -help
        display this help and exit
  -name string
        renames the context for the import
  -set-current-context
        set current context to imported context (default true)
  -stdout
        print result to stdout instead of writing to file
Example:
    cat /some/kubeconfig | k8s-ctx-import

Install pre-compiled version

  • Download a pre-compiled version from the releases page
  • Unpack tar.gz
  • Make sure it is executable
  • Move the binary into $PATH

Install from source

Install or update from current master:

go get -u github.com/chrischdi/k8s-ctx-import

Contribute

Feel free to clone or fork this repo to start contributing.

About

An utility to merge kubernetes contexts to a single kubeconfig.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published