Update in test logic
This commit is contained in:
@@ -95,7 +95,11 @@ integration-k8s:
|
||||
chmod 600 /tmp/test-kubeconfig
|
||||
- |
|
||||
echo "── Installing Traefik CRDs ──"
|
||||
kubectl --kubeconfig /tmp/test-kubeconfig apply \
|
||||
for i in $(seq 1 20); do
|
||||
kubectl --kubeconfig /tmp/test-kubeconfig get nodes >/dev/null 2>&1 && break
|
||||
echo "Waiting for API server... ($i/20)"; sleep 3
|
||||
done
|
||||
kubectl --kubeconfig /tmp/test-kubeconfig apply --validate=false \
|
||||
-f https://raw.githubusercontent.com/traefik/traefik/v2.11/docs/content/reference/dynamic-configuration/kubernetes-crd-definition-v1.yml
|
||||
kubectl --kubeconfig /tmp/test-kubeconfig wait \
|
||||
--for=condition=established --timeout=60s \
|
||||
|
||||
Reference in New Issue
Block a user