Help us shape the future of Go! Take the 2026 Go Developer Survey

kube-config-merger

command module
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Jun 4, 2023 License: MIT Imports: 7 Imported by: 0

README

Kube Config Merge Tool

This is a tool which you can use to merge kubernetes access config files to one main file.

Usage

The command bollow allow you to recursevely merge all files from directoryes ~/configs/k8s/old, /var/my-work/k8s-configs and from file /etc/k8s/admin and from file ~/.kube/config and save the result to destination ~/.kube/config.

By default, this tool works in add mode. This means that all content from the source files will be added to the target (--target) file, so the content of the target file will not be removed or modyfied.

kube-config-merger --directory ~/configs/k8s/old --directory /var/my-work/k8s-configs --file /etc/k8s/admin --target ~/.kube/config

Command tool flags

Flag name Default value Description
--target ~/.kube/config The path to the file to merge all the contents there.
--directory The directory where configs will be searched. This configs will be merged. You can specify many directories.
--file The path to concrete config file which will be merged. You can specify many files.
-v Set this flag to show more details.

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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