kubernetes-secret-decode
kubernetes-secret-decode copied to clipboard
kubectl / krew plugin
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.
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.
Since the repo already has releases I just went on and created kubernetes-sigs/krew-index#173