-
-
Save wstrange/b36a9016bb5f26a2c4a146aa1e7dfc99 to your computer and use it in GitHub Desktop.
s: oneliner for dumping secret
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
# Probably simpler way to do this?? | |
kubectl get secrets/$1 -o json | jq .data.\"$2\" | sed -e s/\"//g | base64 -d |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment