Skip to content

Commit c0b3084

Browse files
kate-goldenringMossaka
authored andcommitted
Update MicroK8s and K3s containerd path in node installer tests
Signed-off-by: Kate Goldenring <[email protected]>
1 parent 4414876 commit c0b3084

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

node-installer/tests/integration-test-k3s.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ kubectl wait -n kwasm --for=condition=Ready pod --selector=job-name=k3s-provisio
5555
kubectl wait -n kwasm --for=jsonpath='{.status.phase}'=Succeeded pod --selector=job-name=k3s-provision-kwasm --timeout=60s
5656

5757
# Verify the SystemdCgroup is set to true
58-
docker exec $NODE_NAME cat /etc/containerd/config.toml | grep -A5 "spin" | grep "SystemdCgroup = true"
58+
sudo cat /var/lib/rancher/k3s/agent/etc/containerd/config.toml | grep -A2 "runtimes.spin.options" | grep "SystemdCgroup = true"
5959

6060
if ! kubectl get pods -n kwasm | grep -q "k3s-provision-kwasm.*Completed"; then
6161
echo "Node installer job failed!"

node-installer/tests/integration-test-microk8s.sh

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
#!/bin/bash
22
set -euo pipefail
3+
shopt -s expand_aliases
34

45
: ${IMAGE_NAME:=ghcr.io/spinkube/containerd-shim-spin/node-installer:dev}
56

@@ -12,12 +13,12 @@ fi
1213
if ! microk8s status | grep -q "microk8s is running"; then
1314
echo "Starting MicroK8s..."
1415
sudo microk8s start
15-
sleep 10
1616
else
1717
sudo microk8s reset
18-
sleep 10
1918
fi
2019

20+
sudo microk8s status --wait-ready
21+
2122
sudo microk8s enable dns
2223

2324
alias kubectl='sudo microk8s kubectl'
@@ -63,7 +64,7 @@ kubectl wait -n kwasm --for=condition=Ready pod --selector=job-name=microk8s-pro
6364
kubectl wait -n kwasm --for=jsonpath='{.status.phase}'=Succeeded pod --selector=job-name=microk8s-provision-kwasm --timeout=60s
6465

6566
# Verify the SystemdCgroup is set to true
66-
docker exec $NODE_NAME cat /etc/containerd/config.toml | grep -A5 "spin" | grep "SystemdCgroup = true"
67+
cat /var/snap/microk8s/current/args/containerd.toml | grep -A5 "spin" | grep "SystemdCgroup = true"
6768

6869
if ! kubectl get pods -n kwasm | grep -q "microk8s-provision-kwasm.*Completed"; then
6970
echo "Node installer job failed!"

0 commit comments

Comments
 (0)