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

Latest commit

 

History

History
42 lines (34 loc) · 1.23 KB

readme.md

File metadata and controls

42 lines (34 loc) · 1.23 KB

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.