Skip to content

Instantly share code, notes, and snippets.

@manno
Created July 13, 2022 08:54
Show Gist options
  • Save manno/5f84a76ea0686e8b6ca0183c03fe8642 to your computer and use it in GitHub Desktop.
Save manno/5f84a76ea0686e8b6ca0183c03fe8642 to your computer and use it in GitHub Desktop.
kubectl get pods -A -o go-template --template='{{range .items}}{{$n := .metadata.name}}{{range .spec.containers}}{{if eq .image "rancher/tekton-utils:v0.1.5"}}{{printf "kubectl logs -n fleet-default %s\n" $n}}{{end}}{{end}}{{end}}' | sh
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment