Skip to content

Instantly share code, notes, and snippets.

@sg-gs
Created March 14, 2023 12:13
Show Gist options
  • Select an option

  • Save sg-gs/ef5dca8cc1426b49d2fae33554c736a9 to your computer and use it in GitHub Desktop.

Select an option

Save sg-gs/ef5dca8cc1426b49d2fae33554c736a9 to your computer and use it in GitHub Desktop.
kubectl get secret <secrets_name> -o go-template='{{range $k,$v := .data}}{{printf "%s=" $k}}{{if not $v}}{{$v}}{{else}}{{$v | base64decode}}{{end}}{{"\n"}}{{end}}'
EOF
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment