k8s-ctx-import

command module
v0.4.1 Latest Latest
Warning

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

Go to latest
Published: Aug 27, 2018 License: MIT Imports: 8 Imported by: 0

README

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.

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