summaryrefslogtreecommitdiff
path: root/hack
diff options
context:
space:
mode:
authorwlq1212 <liqing.wu@daocloud.io>2023-08-16 13:38:19 +0800
committerliqing.wu <liqing.wu@daoclod.io>2023-08-23 11:02:11 +0800
commitf7cfbe3cd3c08b9c3693cbc65c3d3d6a567da4a5 (patch)
treedd0708e89c49761abf800dd91456924c57c1770e /hack
parentMerge pull request #4953 from Shelley-BaoYue/update-ke-image (diff)
downloadkubeedge-f7cfbe3cd3c08b9c3693cbc65c3d3d6a567da4a5.tar.gz
Add e2e compatibility test
Signed-off-by: wlq1212 <liqing.wu@daoclod.io>
Diffstat (limited to 'hack')
-rwxr-xr-xhack/lib/install.sh2
-rwxr-xr-xhack/local-up-kubeedge.sh4
2 files changed, 4 insertions, 2 deletions
diff --git a/hack/lib/install.sh b/hack/lib/install.sh
index e06675cfc..6d777ebd9 100755
--- a/hack/lib/install.sh
+++ b/hack/lib/install.sh
@@ -32,7 +32,7 @@ function check_kind {
command -v kind >/dev/null 2>&1
if [[ $? -ne 0 ]]; then
echo "installing kind ."
- GO111MODULE="on" go install sigs.k8s.io/kind@v0.12.0
+ GO111MODULE="on" go install sigs.k8s.io/kind@v0.17.0
if [[ $? -ne 0 ]]; then
echo "kind installed failed, exiting."
exit 1
diff --git a/hack/local-up-kubeedge.sh b/hack/local-up-kubeedge.sh
index 08f98a3de..7e2bd6ded 100755
--- a/hack/local-up-kubeedge.sh
+++ b/hack/local-up-kubeedge.sh
@@ -21,6 +21,7 @@ LOG_LEVEL=${LOG_LEVEL:-2}
TIMEOUT=${TIMEOUT:-60}s
PROTOCOL=${PROTOCOL:-"WebSocket"}
CONTAINER_RUNTIME=${CONTAINER_RUNTIME:-"remote"}
+KIND_IMAGE=${1:-"kindest/node:v1.24.0"}
echo -e "The installation of the cni plugin will overwrite the cni config file. Use export CNI_CONF_OVERWRITE=false to disable it."
if [[ "${CLUSTER_NAME}x" == "x" ]];then
@@ -48,7 +49,7 @@ function check_prerequisites {
# spin up cluster with kind command
function kind_up_cluster {
echo "Running kind: [kind create cluster ${CLUSTER_CONTEXT}]"
- kind create cluster ${CLUSTER_CONTEXT}
+ kind create cluster ${CLUSTER_CONTEXT} --image ${KIND_IMAGE}
}
function uninstall_kubeedge {
@@ -70,6 +71,7 @@ function cleanup {
echo "Running kind: [kind delete cluster ${CLUSTER_CONTEXT}]"
kind delete cluster ${CLUSTER_CONTEXT}
+
}
if [[ "${ENABLE_DAEMON}" = false ]]; then