kcm
github.com/kairen/kubectl-config-merge
go get github.com/kairen/kubectl-config-merge
kcm

github.com/kairen/kubectl-config-merge

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

by Kyle Bai

v0.1.0 (see all)License:Apache-2.0
go get github.com/kairen/kubectl-config-merge
Readme

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

GitHub Stars

12

LAST COMMIT

3yrs ago

MAINTAINERS

0

CONTRIBUTORS

1

OPEN ISSUES

0

OPEN PRs

0
VersionTagPublished
v0.1.1-0.20190504105555-344d85f9c24d
8mos ago
v0.1.0
8mos ago
No alternatives found
No tutorials found
Add a tutorial