Skip to content

Commit

Permalink
update test workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
jacobdotcosta committed Apr 18, 2024
1 parent 9175f01 commit c48341f
Showing 1 changed file with 10 additions and 6 deletions.
16 changes: 10 additions & 6 deletions kind/registry.sh
Original file line number Diff line number Diff line change
Expand Up @@ -403,12 +403,16 @@ function define_runtime_commands() {
case "$OSTYPE" in
"linux-gnu"*)
DOCKER_RESTART_COMMAND="sudo systemctl restart docker"
if [ "${ROOTLESS_CONTAINERS}" == 'y' ]; then
CRI_COMMAND="podman"
export KIND_EXPERIMENTAL_PROVIDER=podman
else
CRI_COMMAND="sudo podman"
KIND_COMMAND="sudo --preserve-env kind"
if [ "${CRI_PROVIDER}" == 'podman' ]; then
if [ "${ROOTLESS_CONTAINERS}" == 'y' ]; then
CRI_COMMAND="podman"
export KIND_EXPERIMENTAL_PROVIDER=podman
else
CRI_COMMAND="sudo podman"
KIND_COMMAND="sudo --preserve-env kind"
fi
elif [ "${CRI_PROVIDER}" == 'docker' ]; then
CRI_COMMAND="docker"
fi
;;
"darwin"*)
Expand Down

0 comments on commit c48341f

Please sign in to comment.