Skip to content

Commit ea9c3b8

Browse files
authored
feat: additional debugging in nodepool replicas wait task (#553)
1 parent be496f9 commit ea9c3b8

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

tests/tekton-resources/tasks/generators/karpenter/kubectl-nodepool-replicas-wait.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,12 @@ spec:
4545
4646
if [ $ELAPSED_TIME -ge $TIMEOUT ]; then
4747
echo "$(date): Timeout reached after ${ELAPSED_TIME} seconds. Nodepools did not complete within the specified timeout."
48+
for az in $AZ_LIST; do
49+
echo "Nodes:"
50+
echo $(kubectl get nodes -l karpenter.sh/nodepool=$(params.nodepool)-${az} -o yaml)
51+
echo "Nodeclaims:"
52+
echo $(kubectl get nodeclaims -l karpenter.sh/nodepool=$(params.nodepool)-${az} -o yaml)
53+
done
4854
echo "0" | tee $(results.datapoint.path)
4955
exit 1
5056
fi
8 KB
Binary file not shown.

0 commit comments

Comments
 (0)