1
0
Fork 0
mirror of https://github.com/prometheus-operator/prometheus-operator.git synced 2025-04-21 11:48:53 +00:00

.github/workflows: wait for k8s cluster bootstrap by checking if all containers are ready

This commit is contained in:
paulfantom 2020-09-14 16:31:48 +02:00
parent fc44e7f072
commit bbf76b2085
No known key found for this signature in database
GPG key ID: 12AE0185401674E7

View file

@ -88,8 +88,11 @@ jobs:
with:
version: ${{ env.kind-version }}
image: ${{ env.kind-image }}
- name: Check cluster
- name: Wait for cluster to finish bootstraping
run: |
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: Build and load images