Skip to content

Commit

Permalink
fix: CI
Browse files Browse the repository at this point in the history
  • Loading branch information
keskad committed Nov 25, 2023
1 parent 19a8724 commit a5874c6
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -46,4 +46,4 @@ k3d-install-tekton:
export KUBECONFIG=~/.k3d/kubeconfig-${ENV_CLUSTER_NAME}.yaml; \
./.build/kubectl create ns tekton-pipelines || true; \
./.build/kubectl apply -f https://storage.googleapis.com/tekton-releases/pipeline/previous/v0.44.4/release.yaml; \
./.build/kubectl wait --for=condition=ready pod -l app.kubernetes.io/part-of=tekton-pipelines -n tekton-pipelines
./utils/test/wait-for-pods.sh -l app.kubernetes.io/part-of=tekton-pipelines -n tekton-pipelines
13 changes: 13 additions & 0 deletions utils/test/wait-for-pods.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
#!/bin/bash
set -e

podsCreated=false
while [[ $podsCreated == "false" ]]; do
if [[ $(kubectl get pods "$@" 2>&1) != *"STATUS"* ]]; then
sleep 1
continue
fi
break
done

exec kubectl wait --for=condition=ready pod "$@"

0 comments on commit a5874c6

Please sign in to comment.