buildkit/examples/kubernetes/consistenthash/show-running-pods.sh

5 lines
228 B
Bash
Executable File

#!/bin/sh
set -eu
selector="app=buildkitd"
kubectl get pods --selector=$selector --field-selector=status.phase=Running -o=go-template --template="{{range .items}}{{.metadata.name}}{{\"\n\"}}{{end}}" --sort-by="{.metadata.name}"