Skip to content

Commit

Permalink
Remove image limitation
Browse files Browse the repository at this point in the history
  • Loading branch information
TommyLike committed Mar 20, 2019
1 parent ffe39b0 commit 7a99532
Showing 1 changed file with 1 addition and 12 deletions.
13 changes: 1 addition & 12 deletions hack/run-e2e-kind.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,7 @@ if [ "${CLUSTER_NAME}xxx" != "xxx" ];then
export CLUSTER_CONTEXT="--name ${CLUSTER_NAME}"
fi

export KIND_OPT=${KIND_OPT:="--image kindest/node:v1.13.2 --config ${VK_ROOT}/hack/e2e-kind-config.yaml"}

export KIND_IMAGE=$(echo ${KIND_OPT} |grep -E -o "image \w+\/[^ ]*" | sed "s/image //")
export KIND_OPT=${KIND_OPT:=" --config ${VK_ROOT}/hack/e2e-kind-config.yaml"}

# check if kind installed
function check-prerequisites {
Expand All @@ -33,15 +31,6 @@ function check-prerequisites {
fi
}

# check if the images that kind use exists.
function check-kind-image {
docker images | awk '{print $1":"$2}' | grep -q "${KIND_IMAGE}"
if [ $? -ne 0 ]; then
echo "image: ${KIND_IMAGE} not found."
exit 1
fi
}

# spin up cluster with kind command
function kind-up-cluster {
check-prerequisites
Expand Down

0 comments on commit 7a99532

Please sign in to comment.