Skip to content
Permalink
Browse files

Add new plugin "konfig" (#122)

* Add new plugin "konfig"

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>

* Use correct location for validate-krew-manifest
  • Loading branch information...
corneliusweig authored and k8s-ci-robot committed May 14, 2019
1 parent 32b3d15 commit 396f840ab96c541d40ffe20be71586af7aa237f8
Showing with 52 additions and 1 deletion.
  1. +1 −1 .travis.yml
  2. +51 −0 plugins/konfig.yaml
@@ -17,7 +17,7 @@ before_install:
)

# TODO(ahmetb) pin this to a version via a variable
- env GOBIN=$HOME/bin go get github.com/GoogleContainerTools/krew/cmd/validate-krew-manifest
- env GOBIN=$HOME/bin go get sigs.k8s.io/krew/cmd/validate-krew-manifest

install: true # skip go get ./...

@@ -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 396f840

Please sign in to comment.
You can’t perform that action at this time.