Skip to content

Commit

Permalink
Merge pull request #778 from glazychev-art/fix_wait_calico
Browse files Browse the repository at this point in the history
Fix kubectl wait for calico
  • Loading branch information
denis-tingaikin authored Feb 17, 2023
2 parents 38d85e4 + 30e13a2 commit f1116d6
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -164,9 +164,17 @@ jobs:
image: kindest/node:${{ env.KUBERNETES_VERSION }}
wait: 0s
- name: Setup external CNI plugin
shell: bash {0}
run: |
kubectl create -f https://projectcalico.docs.tigera.io/archive/v3.24/manifests/tigera-operator.yaml
kubectl wait --for condition=established --timeout=10s crd/installations.operator.tigera.io
for i in {1..5}; do
kubectl wait --for condition=established --timeout=1s crd/installations.operator.tigera.io
result=$?
if [ $result -eq 0 ]; then
break
fi
sleep 1s
done
kubectl create -f https://raw.githubusercontent.com/projectcalico/vpp-dataplane/82c88a14e5e0e3cc5d7f70c52cdbc01c999d3a42/yaml/calico/installation-default.yaml
kubectl apply -k ${{ github.workspace }}/src/github.com/${{ github.repository }}/calico
kubectl rollout status -n calico-vpp-dataplane ds/calico-vpp-node --timeout=5m
Expand Down

0 comments on commit f1116d6

Please sign in to comment.