try assert

This commit is contained in:
Cedric Verstraeten
2024-08-14 22:08:49 +02:00
parent 01b39f360f
commit fbdc725952

View File

@@ -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