Skip to content

Commit 257c991

Browse files
committed
node-installer: update the k3s integration test script to account for different quoting styles for spin
Signed-off-by: Jiaxiao (mossaka) Zhou <[email protected]>
1 parent 2dd59d7 commit 257c991

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ echo "Waiting for node installer job to complete..."
4242
kubectl wait -n kwasm --for=jsonpath='{.status.phase}'=Succeeded pod --selector=job-name=k3s-provision-kwasm --timeout=60s
4343

4444
# Verify the SystemdCgroup is set to true
45-
if sudo cat /var/lib/rancher/k3s/agent/etc/containerd/config.toml | grep -A2 "runtimes.spin.options" | grep -q "SystemdCgroup = true"; then
45+
if sudo cat /var/lib/rancher/k3s/agent/etc/containerd/config.toml | grep -A2 -E "runtimes\.(spin|'spin'|\"spin\")\.options" | grep -q "SystemdCgroup = true"; then
4646
echo "SystemdCgroup is set to true"
4747
else
4848
echo "SystemdCgroup is not set to true"

0 commit comments

Comments
 (0)