kubectl-modify-secrets allows user to directly modify the secret without worrying about base64 encoding/decoding
APACHE-2.0 License
kubectl-modify-secret
is a kubectl plugin that allows user to modify the secret without having to worry about doing base64 encoding/decoding.
This plugin pulls the secret from Kubernetes, and open the configured editor with just the decoded secret data. Once user makes changes, save and quit the editor, the plugin automatically apply the updated data to Kubernetes.
krew
using instructions here
kubectl krew update
kubectl krew install modify-secret
brew install rajatjindal/tap/modify-secret
kubectl modify-secret xyz
kubectl modify-secret xyz -n kube-system
kubectl modify-secret xyz --kubeconfig /path/to/different/kube/config