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:
parent
fc44e7f072
commit
bbf76b2085
1 changed files with 4 additions and 1 deletions
5
.github/workflows/ci.yaml
vendored
5
.github/workflows/ci.yaml
vendored
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue