Skip to content

A kubectl plugin for merging multiple kubeconfig files. A cli-runtime example.

License

Notifications You must be signed in to change notification settings

pgmodusbox/kubectl-config-merge

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Build Status

kubectl-config-merge

This repository implements a kubectl plugin for merging multiple kubeconfig files.

Screenshot

Usage

$ kubectl config-merge -h
Merge two or more kubeconfig files

Usage:
  config-merge [kubeconfig] [flags]

Examples:

	# Merge your kubeconfig and save it as "merge-config" in the current directory
	kubectl config-merge kubeconfig1 kubeconfig2 ...

	# Merge your kubeconfig and save it as "config" in "test" directory
	kubectl config-merge kubeconfig1 kubeconfig2 ... --path test/config

	# Merge your kubeconfig with $HOME/.kube/config as "$HOME/.kube/config"
	kubectl config-merge kubeconfig1 ... --home

	# To view merged kubeconfig result
	kubectl config-merge kubeconfig1 kubeconfig2 ... --view


Flags:
      --backup          If true, backup $HOME/.kube/config file to $HOME/.kube/config.bk (default true)
  -h, --help            help for config-merge
      --home            If true, merge with $HOME/.kube/config to $HOME/.kube/config
  -o, --output string   Merged kubeconfig output type(json or yaml) (default "yaml")
      --overwrite       If true, force merge kubeconfig
      --path string     Merged kubeconfig output name and path (default "merge-config")
      --version         Show config-merge version
      --view            View merged kubeconfig result

About

A kubectl plugin for merging multiple kubeconfig files. A cli-runtime example.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Go 91.4%
  • Makefile 8.6%