We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 38bb057 commit 921434bCopy full SHA for 921434b
tests/tekton-resources/tasks/setup/eks/awscli-mng.yaml
@@ -93,6 +93,13 @@ spec:
93
echo "$node_group_name is "CREATING" at $(date)"
94
sleep 2
95
done
96
+
97
+ node_group_status="$(aws eks $ENDPOINT_FLAG --region $(params.region) describe-nodegroup --cluster-name $(params.cluster-name) --nodegroup-name $node_group_name --query nodegroup.status --output text)"
98
+ if [[ $node_group_status != "ACTIVE" ]]; then
99
+ echo "$node_group_name creation failed. The status is $node_group_status"
100
+ exit 1
101
+ fi
102
103
while true; do
104
ready_node=$(kubectl get nodes -l eks.amazonaws.com/nodegroup=$node_group_name --no-headers 2>/dev/null | grep -w Ready | wc -l)
105
echo "ready-nodes=$ready_node out of $2, for nodegroup: $node_group_name"
0 commit comments