Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/kairen/kubectl-config-merge
A kubectl plugin for merging multiple kubeconfig files. A cli-runtime example.
https://github.com/kairen/kubectl-config-merge
kubectl kubectl-plugins kubernetes
Last synced: 3 months ago
JSON representation
A kubectl plugin for merging multiple kubeconfig files. A cli-runtime example.
- Host: GitHub
- URL: https://github.com/kairen/kubectl-config-merge
- Owner: kairen
- License: apache-2.0
- Created: 2019-02-14T15:12:36.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2023-03-06T13:32:11.000Z (almost 2 years ago)
- Last Synced: 2024-05-21T12:42:36.804Z (8 months ago)
- Topics: kubectl, kubectl-plugins, kubernetes
- Language: Go
- Homepage:
- Size: 5.16 MB
- Stars: 22
- Watchers: 3
- Forks: 1
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-kubectl-plugins - kubectl-config-merge - runtime example. | Uncategorized | (kubectl Plugins / Installing plugins via awesome-kubectl-plugins)
README
[![Build Status](https://travis-ci.org/kubedev/kubectl-config-merge.svg?branch=master)](https://travis-ci.org/kubedev/kubectl-config-merge)
# kubectl-config-merge
This repository implements a kubectl plugin for merging multiple kubeconfig files.![Screenshot](./screenshots/config-merge.gif)
## Usage
```
$ kubectl config-merge -h
Merge two or more kubeconfig filesUsage:
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 ... --viewFlags:
--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
```## How to install kubectl plugins
You can read instructions here on how to install this plugin: https://kubernetes.io/docs/tasks/extend-kubectl/kubectl-plugins/