Skip to content

Commit

Permalink
chore: Improve fargate test reliability
Browse files Browse the repository at this point in the history
  • Loading branch information
niallthomson committed Dec 11, 2024
1 parent 676c00d commit 260f24d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions website/docs/fundamentals/fargate/tests/hook-enabling.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@ before() {
}

after() {
aws eks wait fargate-profile-active --cluster-name ${EKS_CLUSTER_NAME} \
--fargate-profile-name checkout-profile

check=$(kubectl get po -n checkout -l app.kubernetes.io/instance=checkout,app.kubernetes.io/component=service -o json | jq -r '.items[0].spec.nodeName' | grep 'fargate' || true)

if [ -z "$check" ]; then
Expand Down

0 comments on commit 260f24d

Please sign in to comment.