ashleyschuett / kubernetes-secret-decode

shows kubernetes secret with values base64 decoded
Apache License 2.0
192 stars 21 forks source link

kubectl / krew plugin #10

Open r-bar opened 5 years ago

r-bar commented 5 years ago

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.

ashleyschuett commented 5 years ago

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.

bergerx commented 5 years ago

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