From e8a668b1603c99c3d44280107320659f6c0267af Mon Sep 17 00:00:00 2001 From: Johannes Kleinlercher Date: Fri, 23 Aug 2024 23:29:57 +0200 Subject: [PATCH] add shutdown test again --- .github/workflows/cluster-test.yml | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/.github/workflows/cluster-test.yml b/.github/workflows/cluster-test.yml index c3235d488..dc28ccfcd 100644 --- a/.github/workflows/cluster-test.yml +++ b/.github/workflows/cluster-test.yml @@ -114,3 +114,16 @@ jobs: kubectl logs -n argocd statefulset/sx-argocd-application-controller kubectl logs -n argocd deployment/sx-argocd-repo-server kubectl logs -n argocd deployment/sx-argocd-applicationset-controller + + - name: shutdown test + shell: bash + run: | + kubectl delete application sx-bootstrap-app -n argocd & + # wait max 10 minutes + end=$((SECONDS+600)) + while true ; do \ + kubectl get applications -n argocd ; \ + if [[ $? != 0 ]]; then break ; fi ; \ + if [ $SECONDS -gt $end ] ; then kubectl get applications -n argocd -o yaml ;exit 1; fi; \ + sleep 5 ; + done