Skip to content

Commit

Permalink
Add sudo to microk8s
Browse files Browse the repository at this point in the history
  • Loading branch information
orfeas-k committed Nov 17, 2023
1 parent 65389d2 commit ef5a7c6
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/full-bundle-tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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: |
Expand Down Expand Up @@ -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()
Expand All @@ -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

0 comments on commit ef5a7c6

Please sign in to comment.