Created
October 27, 2023 14:59
-
-
Save Elektordi/136aa94292efcc30207cb9ac12512073 to your computer and use it in GitHub Desktop.
Import kube secret into env
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
source <(kubectl get -n xxxnamespacexxx secret xxxnamexxx -o json | jq -r '.data | to_entries[] | ["export " + .key + "=\"" + (.value | @base64d) + "\""] | join("\n")' | xargs -d '\n') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment