diff options
| author | KubeEdge Bot <48982446+kubeedge-bot@users.noreply.github.com> | 2023-08-24 09:57:35 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-08-24 09:57:35 +0800 |
| commit | c9902192e3f5bb1d7a5a8788ff4971f8f715cc76 (patch) | |
| tree | dd0708e89c49761abf800dd91456924c57c1770e /hack | |
| parent | Merge pull request #4953 from Shelley-BaoYue/update-ke-image (diff) | |
| parent | Add e2e compatibility test (diff) | |
| download | kubeedge-c9902192e3f5bb1d7a5a8788ff4971f8f715cc76.tar.gz | |
Merge pull request #4939 from wlq1212/e2e/compatibility
Add e2e compatibility test
Diffstat (limited to 'hack')
| -rwxr-xr-x | hack/lib/install.sh | 2 | ||||
| -rwxr-xr-x | hack/local-up-kubeedge.sh | 4 |
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 |
