kubextractor

command module
v0.0.0-...-429c869 Latest Latest
Warning

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

Go to latest
Published: Apr 10, 2018 License: Apache-2.0 Imports: 1 Imported by: 0

README

CircleCI Go Report Card

KubExtract

This tool could be used to extract specific k8s configuration context from global config file

Build

go build kubextractor
Use package
go get -u github.com/jsenon/kubextractor
Prerequisite

You need to have kubectl command line properly installed and set to your PATH

Exec

Download kubextractor executable file in bin/

Command line
Extract kubernetes context ie. configuration user and endpoint.
				  Complete documentation is available at https://github.com/jsenon/kubextractor
				  After export Use kubectl config use-context YOURCONTEXT --kubeconfig output.json to use it

Usage:
  kubextractor [flags]

Flags:
  -c, --config string       k8s config file default ($HOME/.kube/config)
  -j, --configjson string   k8s config file JSON default ($HOME/.kube/config.json)
  -e, --context string      MANDATORY: Name of  context to extract
  -h, --help                help for kubextractor
  -o, --output string       Name of output file
TIPS

Use Help if need

kubextractor -h
Todo

As seen by @VixsTy refactor and use https://github.com/kubernetes/client-go/blob/master/tools/clientcmd/api/types.go

Documentation

Overview

Package main Kubeextractor.

the purpose of this application is to provide an Kube Configuration Extraction

Terms Of Service:

there are no TOS at this moment, use at your own risk we take no responsibility

License: MIT http://opensource.org/licenses/MIT
Contact: Julien SENON <julien.senon@gmail.com>

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL