kubernetes-secret-decode icon indicating copy to clipboard operation
kubernetes-secret-decode copied to clipboard

kubectl / krew plugin

Open r-bar opened this issue 5 years ago • 2 comments

I was wondering if you would be open to converting this program to a kubectl plugin? With the addition of a tiny shell script you can use kubernetes-secret-decode as a kubectl plugin today.

/usr/local/bin/kubectl-secret_decode:

#!/bin/bash
kubectl get secret -o yaml ${@:1} | kubernetes-secret-decode

This allows kubernetes-secret-decode to be called as kubectl secret-decode <secret-name>.

Further I was wondering if you would be interested in kubernetes-secret-decode being included in the krew index for easy installation? I strongly prefer the way kubernetes-secret-decode behaves in comparison the the existing view-secret plugin and think it would be a valuable addition to both projects.

r-bar avatar Apr 17 '19 21:04 r-bar

I would like to convert this to a kubectl plugin and has been on my todo list. Unfortunately I haven't had the time. If you want to put up a PR for this functionality or collaborate on it that would be helpful to get it done sooner.

ashleyschuett avatar Apr 18 '19 14:04 ashleyschuett

Since the repo already has releases I just went on and created kubernetes-sigs/krew-index#173

bergerx avatar Jul 09 '19 14:07 bergerx