Skip to content

Instantly share code, notes, and snippets.

@kevinsimper
Last active May 3, 2024 09:54
Show Gist options
  • Save kevinsimper/e5fc695ab9e93eb6b354e0386b4b4509 to your computer and use it in GitHub Desktop.
Save kevinsimper/e5fc695ab9e93eb6b354e0386b4b4509 to your computer and use it in GitHub Desktop.
kubectl get — no-headers secret | awk '{print $1}' | \
xargs -I{} sh -c 'kubectl get secret -o yaml "$1" > "$1.yaml"' — {}
@tp-drosssmith
Copy link

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