Skip to content

Commit a0e47dd

Browse files
authored
Merge branch 'main' into k8s/debugging
2 parents 2ccb82b + 359056f commit a0e47dd

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎scripts/k8s/pending-pods.sh‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ NAMESPACE=${1:-""}
77
NS_FLAG=${NAMESPACE:+-n "$NAMESPACE"}
88
NS_FLAG=${NS_FLAG:---all-namespaces}
99

10-
pending=$(kubectl get pods $NS_FLAG -o json \
10+
pending=$(kubectl get pods "$NS_FLAG" -o json \
1111
| jq -r '.items[] | select(.status.phase == "Pending") | "\(.metadata.namespace)/\(.metadata.name)"')
1212

1313
if [ -z "$pending" ]; then

0 commit comments

Comments
 (0)