Skip to content

Commit

Permalink
Fix VIRTLET_DISABLE_KVM check
Browse files Browse the repository at this point in the history
  • Loading branch information
ivan4th committed Apr 4, 2018
1 parent 1f5c8ca commit 90e9461
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion build/cmd.sh
Original file line number Diff line number Diff line change
Expand Up @@ -285,7 +285,7 @@ function start_dind {
vcmd "docker save '${virtlet_image}' | docker exec -i '${virtlet_node}' docker load"
fi
local -a virtlet_config=(--from-literal=image_regexp_translation="${IMAGE_REGEXP_TRANSLATION}")
if ! kvm_ok || [[ ! ${VIRTLET_DISABLE_KVM} ]]; then
if ! kvm_ok || [[ ${VIRTLET_DISABLE_KVM:-} ]]; then
virtlet_config+=(--from-literal=disable_kvm=y)
fi
kubectl label node --overwrite "${virtlet_node}" extraRuntime=virtlet
Expand Down

0 comments on commit 90e9461

Please sign in to comment.