@@ -57,26 +57,22 @@ jobs:
5757 - name : Import image into k3d
5858 run : k3d image import ghcr.io/go-authgate/authgate:${{ steps.version.outputs.APP_VERSION }} -c authgate-ci
5959
60+ - name : Wait for cluster ready
61+ run : kubectl wait --for=condition=Ready nodes --all --timeout=120s
62+
6063 - name : Update dependencies
6164 run : helm dependency update .
6265
6366 - name : Install (${{ matrix.mode }})
6467 run : |
65- kubectl create namespace authgate-ci
6668 helm install ${{ matrix.release }} . \
69+ --create-namespace \
6770 --namespace authgate-ci \
6871 -f ${{ matrix.values }} \
6972 --set image.pullPolicy=IfNotPresent \
7073 --wait \
7174 --timeout ${{ matrix.timeout }}
7275
73- - name : Wait for pods
74- run : |
75- kubectl wait --namespace authgate-ci \
76- --for=condition=ready pod \
77- -l app.kubernetes.io/name=authgate \
78- --timeout=180s
79-
8076 - name : Health check
8177 run : |
8278 kubectl run health-check \
@@ -96,10 +92,14 @@ jobs:
9692 kubectl get pods --namespace authgate-ci -o wide
9793 echo "=== Describe failing pods ==="
9894 kubectl describe pods --namespace authgate-ci -l app.kubernetes.io/name=authgate
95+ echo "=== Describe PostgreSQL pods ==="
96+ kubectl describe pods --namespace authgate-ci -l app.kubernetes.io/name=postgresql || true
9997 echo "=== Events ==="
10098 kubectl get events --namespace authgate-ci --sort-by='.lastTimestamp'
101- echo "=== Logs ==="
99+ echo "=== AuthGate Logs ==="
102100 kubectl logs --namespace authgate-ci -l app.kubernetes.io/name=authgate --tail=100 || true
101+ echo "=== PostgreSQL Logs ==="
102+ kubectl logs --namespace authgate-ci -l app.kubernetes.io/name=postgresql --tail=50 || true
103103
104104 - name : Uninstall
105105 if : always()
0 commit comments