Skip to content

Instantly share code, notes, and snippets.

@nabsha
Created May 26, 2020 08:05
Show Gist options
  • Save nabsha/8367d5f54cf3054998cc2aa7928cca13 to your computer and use it in GitHub Desktop.
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
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