Created
August 18, 2023 18:49
-
-
Save stand-sure/e6b2f7e2a6daeb589d7654d1bba91563 to your computer and use it in GitHub Desktop.
get and decode all k8s secrets
This file contains hidden or 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 | |
kubectl get secret --output yaml | /usr/local/bin/yq '.items[] | { (.metadata.name): (.data | to_entries) | map_values({ (.key): (.value | @base64d )}) }' | |
echo |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment