From f547b57753eef0de587120754dd95bad1ca509b3 Mon Sep 17 00:00:00 2001 From: Kevin Hahn Date: Mon, 10 Jun 2024 12:05:41 -0600 Subject: [PATCH] wait for app.kubernetes.io/component=controller --- .github/workflows/k8s-action.yaml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/k8s-action.yaml b/.github/workflows/k8s-action.yaml index 5960d798cd..b588c8b9a1 100644 --- a/.github/workflows/k8s-action.yaml +++ b/.github/workflows/k8s-action.yaml @@ -30,13 +30,15 @@ jobs: kubectl create namespace languagedepot kubectl apply -k ./deployment/gha kubectl wait --for=condition=Ready --timeout=90s pod -l 'app in (lexbox, ui, hg, db)' -n languagedepot - kubectl wait --for=condition=Ready --timeout=90s pod -l 'app.kubernetes.io/name=ingress-nginx' -n languagedepot + kubectl wait --for=condition=Ready --timeout=90s pod -l 'app.kubernetes.io/component=controller' -n languagedepot - name: status if: failure() run: | kubectl describe pods -l 'app in (lexbox, ui, hg, db)' -n languagedepot echo "========== LOGS ==========" kubectl logs -l 'app in (lexbox, ui, hg, db)' -n languagedepot --prefix --all-containers --tail=50 + echo "========== INGRESS ==========" + kubectl logs -l 'app.kubernetes.io/name=ingress-nginx' -n languagedepot --prefix --all-containers --tail=50 - name: verify ingress run: curl -v http://localhost - name: test