Skip to content

Commit

Permalink
adding a possible fix from cnpgs own ci steps
Browse files Browse the repository at this point in the history
  • Loading branch information
cloudymax authored Nov 10, 2023
1 parent d0d7c47 commit 682766f
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions .github/workflows/ci-helm-lint-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,21 @@ jobs:
#helm install cnpg-cluster cnpg-cluster/cnpg-cluster --values test-values.yaml
helm template . -f test-values.yaml > deploy.yaml
kubectl apply -f deploy.yaml
ITER=0
while true; do
if [[ $ITER -ge 300 ]]; then
echo "Cluster not ready"
exit 1
fi
READY_INSTANCES=$(kubectl get cluster cluster-example -o jsonpath='{.status.readyInstances}')
if [[ "$READY_INSTANCES" == 3 ]]; then
echo "Cluster up and running"
break
fi
sleep 1
(( ++ITER ))
done
- name: Run chart-testing (install)
id: install
Expand Down

0 comments on commit 682766f

Please sign in to comment.