Skip to content
Snippets Groups Projects
Commit 305857a3 authored by Philip Gough's avatar Philip Gough
Browse files

ci: Harden action to wait for kind cluster readiness

parent f24727f3
No related branches found
No related tags found
No related merge requests found
...@@ -63,13 +63,9 @@ jobs: ...@@ -63,13 +63,9 @@ jobs:
with: with:
version: ${{ env.kind-version }} version: ${{ env.kind-version }}
image: ${{ matrix.kind-image }} image: ${{ matrix.kind-image }}
wait: 300s
- name: Wait for cluster to finish bootstraping - name: Wait for cluster to finish bootstraping
run: | run: kubectl wait --for=condition=Ready pods --all --all-namespaces --timeout=300s
until [ "$(kubectl get pods --all-namespaces --no-headers | grep -cEv '([0-9]+)/\1')" -eq 0 ]; do
sleep 5s
done
kubectl cluster-info
kubectl get pods -A
- name: Create kube-prometheus stack - name: Create kube-prometheus stack
run: | run: |
kubectl create -f manifests/setup kubectl create -f manifests/setup
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment