From 1fc0cf61f19fc7fdefbf3abb5bcabd37ba078cd9 Mon Sep 17 00:00:00 2001 From: Gleb Boushev Date: Mon, 1 Mar 2021 14:12:27 +0300 Subject: [PATCH] Update cloud-controller-build.yaml (#24) --- .github/workflows/cloud-controller-build.yaml | 25 +++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/.github/workflows/cloud-controller-build.yaml b/.github/workflows/cloud-controller-build.yaml index acad44b9c..bdbfa7e54 100644 --- a/.github/workflows/cloud-controller-build.yaml +++ b/.github/workflows/cloud-controller-build.yaml @@ -122,3 +122,28 @@ jobs: run: | helm dependency update helm upgrade --install tip . -f ../../testbed-deployment.yaml --create-namespace --namespace nola-${{ matrix.number }} --wait --timeout 20m + + - name: Show resource state on deployment failure + if: failure() + run: | + kubectl get pods --namespace nola-${{ matrix.number }} + kubectl get services --namespace nola-${{ matrix.number }} + kubectl get persistentvolumeclaims --namespace nola-${{ matrix.number }} + - name: Describe pods on deployment failure + if: failure() + run: | + kubectl describe pods --namespace nola-${{ matrix.number }} + - name: Describe services on deployment failure + if: failure() + run: | + kubectl describe services --namespace nola-${{ matrix.number }} + - name: Describe persistentvolumeclaims on deployment failure + if: failure() + run: | + kubectl describe persistentvolumeclaims --namespace nola-${{ matrix.number }} + + - name: Rollback Cloud SDK + if: failure() + working-directory: wlan-helm/tip-wlan + run: | + helm rollback tip --namespace nola-${{ matrix.number }} --wait --timeout 20m