Last active
May 3, 2024 09:54
-
-
Save kevinsimper/e5fc695ab9e93eb6b354e0386b4b4509 to your computer and use it in GitHub Desktop.
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
kubectl get — no-headers secret | awk '{print $1}' | \ | |
xargs -I{} sh -c 'kubectl get secret -o yaml "$1" > "$1.yaml"' — {} |
thanks for this time saving one liner
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
If this command does not work, you might try this version:
It:
cons: