Created
May 26, 2020 08:05
-
-
Save nabsha/8367d5f54cf3054998cc2aa7928cca13 to your computer and use it in GitHub Desktop.
Get all openshift Opaque secrets and base64 decode then in a single line
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
oc get secrets -o wide --all-namespaces=true | grep qat | grep mule | awk '{ system("oc get secrets --namespace=" $1 " " $2 " -o yaml | grep credentials | cut -d: -f2 | base64 -d") }' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment