Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This is a small wrapper script around the `kubectl config view` command. It has three subcommands: - import - export/split - merge Home: https://github.com/corneliusweig/konfig Release notes: https://github.com/corneliusweig/konfig/releases/tag/v0.2.0 Signed-off-by: Cornelius Weig <cornelius.weig@gmail.com>
- Loading branch information
1 parent
32b3d15
commit 83b8ef6
Showing
1 changed file
with
51 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
apiVersion: krew.googlecontainertools.github.com/v1alpha2 | ||
kind: Plugin | ||
metadata: | ||
name: konfig | ||
spec: | ||
version: "v0.2.0" | ||
platforms: | ||
- uri: https://github.com/corneliusweig/konfig/releases/download/v0.2.0/bundle.tar.gz | ||
sha256: 3ea1be03bc204aa4b50ce8547d82a5fe36f94b529b06977780c8ccab9d411977 | ||
bin: konfig-krew | ||
files: | ||
- from: ./konfig-krew | ||
to: "." | ||
selector: | ||
matchLabels: | ||
os: linux | ||
- uri: https://github.com/corneliusweig/konfig/releases/download/v0.2.0/bundle.tar.gz | ||
sha256: 3ea1be03bc204aa4b50ce8547d82a5fe36f94b529b06977780c8ccab9d411977 | ||
bin: konfig-krew | ||
files: | ||
- from: ./konfig-krew | ||
to: "." | ||
selector: | ||
matchLabels: | ||
os: darwin | ||
- uri: https://github.com/corneliusweig/konfig/releases/download/v0.2.0/bundle.tar.gz | ||
sha256: 3ea1be03bc204aa4b50ce8547d82a5fe36f94b529b06977780c8ccab9d411977 | ||
bin: konfig-krew.exe | ||
files: | ||
- from: ./konfig-krew | ||
to: konfig-krew.exe | ||
selector: | ||
matchLabels: | ||
os: windows | ||
shortDescription: Merge, split or import kubeconfig files | ||
homepage: https://github.com/corneliusweig/konfig | ||
caveats: | | ||
Usage: | ||
kubectl konfig merge kubeconfig1 kubeconfig2 > merged | ||
kubectl konfig import new-cfg > ~/.kube/config | ||
kubectl konfig export ctx1 ctx2 -k k8s.yaml,k3s.yaml > extracted | ||
Documentation: | ||
https://github.com/corneliusweig/konfig/blob/v0.2.0/doc/USAGE.md#usage | ||
description: |+2 | ||
konfig helps to merge, split or import kubeconfig files | ||
This is a convenience wrapper around the `kubectl config view` command. | ||
More on https://github.com/corneliusweig/konfig/blob/v0.2.0/doc/USAGE.md#usage |