Skip to content

Commit f13a448

Browse files
Script MicroK8s installation in node installer tests
Signed-off-by: Kate Goldenring <[email protected]>
1 parent c35d876 commit f13a448

File tree

1 file changed

+11
-2
lines changed

1 file changed

+11
-2
lines changed

.github/workflows/action-node-installer.yaml

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,8 +65,17 @@ jobs:
6565
start: false
6666
container-runtime: containerd
6767

68-
- uses: balchua/[email protected]
69-
if: matrix.distribution == 'microk8s'
68+
- if: matrix.distribution == 'microk8s'
69+
name: Install MicroK8s
70+
run: |
71+
set -x
72+
sudo snap install microk8s --classic --channel=1.32/stable
73+
sudo microk8s status --wait-ready
74+
sudo usermod -a -G microk8s $USER
75+
mkdir -p $HOME/.kube
76+
sudo microk8s kubectl config view --raw > $HOME/.kube/config
77+
sudo chown $(id -u):$(id -g) $HOME/.kube/config
78+
until sudo microk8s status --wait-ready; do sleep 5s; echo "Try again"; done
7079
7180
- name: Run KIND test
7281
if: matrix.distribution == 'kind'

0 commit comments

Comments
 (0)