Skip to content

Commit

Permalink
Add new plugin "konfig"
Browse files Browse the repository at this point in the history
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
corneliusweig committed May 11, 2019
1 parent 32b3d15 commit 83b8ef6
Showing 1 changed file with 51 additions and 0 deletions.
51 changes: 51 additions & 0 deletions plugins/konfig.yaml
@@ -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

0 comments on commit 83b8ef6

Please sign in to comment.