From fbdc725952dc6fc7ccbee223e3e6c59ae733268e Mon Sep 17 00:00:00 2001 From: Cedric Verstraeten Date: Wed, 14 Aug 2024 22:08:49 +0200 Subject: [PATCH] try assert --- .github/workflows/microk8s.yaml | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/.github/workflows/microk8s.yaml b/.github/workflows/microk8s.yaml index a2d6de6..11dae46 100644 --- a/.github/workflows/microk8s.yaml +++ b/.github/workflows/microk8s.yaml @@ -52,9 +52,8 @@ jobs: run: | kubectl create namespace kerberos-vault kubectl apply -f ./kerberos-vault-deployment.yaml -n kerberos-vault - - echo "Sleeping for 30 seconds, give time for the helm chart to create the pods" && sleep 30 - kubectl get pods -A -o wide + echo "Sleeping for 2 seconds, give time for the helm chart to create the pods" && sleep 2 + kubectl get pods -A -o wide | grep kerberos-vault | awk '{print $4}' | grep -q '1/1' && echo "kerberos-vault pod is running with status 1/1" || (echo "kerberos-vault pod is not running with status 1/1" && exit 1) - name: Install Kerberos Agent id: install-kerberos-agent run: | @@ -68,5 +67,5 @@ jobs: sed -e '/limits/ s/^#*/#/' -i ./data-filtering-deployment.yaml sed -e '/nvidia/ s/^#*/#/' -i ./data-filtering-deployment.yaml kubectl apply -f data-filtering-deployment.yaml - echo "Sleeping for 30 seconds, give time for the helm chart to create the pods" && sleep 30 + echo "Sleeping for 120 seconds, give time for the helm chart to create the pods" && sleep 120 kubectl get pods -A -o wide