From ef5a7c6fda6f312bc47748a0ec2d87f55309db85 Mon Sep 17 00:00:00 2001 From: Orfeas Kourkakis Date: Fri, 17 Nov 2023 10:52:22 +0200 Subject: [PATCH] Add sudo to microk8s --- .github/workflows/full-bundle-tests.yaml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/full-bundle-tests.yaml b/.github/workflows/full-bundle-tests.yaml index e6b11e128..b9c113386 100644 --- a/.github/workflows/full-bundle-tests.yaml +++ b/.github/workflows/full-bundle-tests.yaml @@ -129,7 +129,7 @@ jobs: - name: Show all pods status run: | - sg microk8s -c "microk8s kubectl get pods --all-namespaces" + sudo microk8s kubectl get pods --all-namespaces - name: Increase file system limits run: | @@ -179,12 +179,12 @@ jobs: sg microk8s -c "juju status" echo "Dumping k8s logs" - sg microk8s -c "microk8s kubectl get all --all-namespaces" + sudo microk8s kubectl get all --all-namespaces - name: Descript all pods if: failure() run: | - sg microk8s -c "microk8s kubectl describe pods --all-namespaces" + sudo microk8s kubectl describe pods --all-namespaces - name: Get logs from failed pods if: failure() || cancelled() @@ -195,6 +195,6 @@ jobs: echo "Actual Logs" while read -r POD NAMESPACE; do echo "\n\n\nPod: $POD" - sg microk8s -c "microk8s kubectl logs -n $NAMESPACE $POD" + sudo microk8s kubectl logs -n $NAMESPACE $POD done <<< "$POD_LIST" fi