Update in test logic
This commit is contained in:
@@ -114,7 +114,12 @@ jobs:
|
|||||||
|
|
||||||
- name: Install Traefik CRDs
|
- name: Install Traefik CRDs
|
||||||
run: |
|
run: |
|
||||||
kubectl --kubeconfig /tmp/test-kubeconfig apply \
|
# Wait for API server to accept connections before applying CRDs
|
||||||
|
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
|
-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 \
|
kubectl --kubeconfig /tmp/test-kubeconfig wait \
|
||||||
--for=condition=established --timeout=60s \
|
--for=condition=established --timeout=60s \
|
||||||
|
|||||||
@@ -95,7 +95,11 @@ integration-k8s:
|
|||||||
chmod 600 /tmp/test-kubeconfig
|
chmod 600 /tmp/test-kubeconfig
|
||||||
- |
|
- |
|
||||||
echo "── Installing Traefik CRDs ──"
|
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
|
-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 \
|
kubectl --kubeconfig /tmp/test-kubeconfig wait \
|
||||||
--for=condition=established --timeout=60s \
|
--for=condition=established --timeout=60s \
|
||||||
|
|||||||
Reference in New Issue
Block a user