Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion k8s/scripts/sysbox-deploy-k8s.sh
Original file line number Diff line number Diff line change
Expand Up @@ -996,7 +996,10 @@ function is_containerd_with_userns() {
# to use the alternative runtime, but containers within the sandbox still use
# the default runc runtime.

local runtime_version=$(kubectl get node $NODE_NAME -o jsonpath='{.status.nodeInfo.containerRuntimeVersion}')
local runtime_version
if ! runtime_version=$(kubectl get node $NODE_NAME -o jsonpath='{.status.nodeInfo.containerRuntimeVersion}'); then
die "Failed to get containerd version"
fi

# Check if it's containerd
if ! echo "$runtime_version" | grep -q "containerd://"; then
Expand Down