From 7444202f9de4d42e909d350cd0cc3a6f341c311d Mon Sep 17 00:00:00 2001 From: "panyintian.fu" Date: Tue, 12 Nov 2024 09:15:20 +0800 Subject: [PATCH] [Test] Upgrade k8s version to 1.30.5 Signed-off-by: panyintian.fu --- .github/workflows/verify-kubespray.yaml | 2 +- hack/run-nightly-cluster-e2e.sh | 6 +++--- hack/yml_utils.sh | 2 +- test/common/vars-conf-cm.yml | 2 +- test/offline-common/vars-conf-cm.yml | 2 +- test/tools/config.go | 2 +- 6 files changed, 8 insertions(+), 8 deletions(-) diff --git a/.github/workflows/verify-kubespray.yaml b/.github/workflows/verify-kubespray.yaml index 1ae71779b..ddc23a320 100644 --- a/.github/workflows/verify-kubespray.yaml +++ b/.github/workflows/verify-kubespray.yaml @@ -80,7 +80,7 @@ jobs: echo ${{ runner.os }} echo ${{ runner.arch }} echo ${{ github.workspace }} - export KUBE_VERSION=v1.30.4 + export KUBE_VERSION=v1.30.5 bash hack/e2e.sh "${HELM_CHART_VERSION}" "${CONTAINER_TAG}" ${{ runner.name }} "${VSPHERE_USER}" "${VSPHERE_PASSWD}" "${AMD_ROOT_PASSWORD}" "${KYLIN_VM_PASSWORD}" "PR" print_kubespray_commit_sha: diff --git a/hack/run-nightly-cluster-e2e.sh b/hack/run-nightly-cluster-e2e.sh index 07eabe9b7..7be4fae3f 100644 --- a/hack/run-nightly-cluster-e2e.sh +++ b/hack/run-nightly-cluster-e2e.sh @@ -140,7 +140,7 @@ func_prepare_config_yaml "${SOURCE_CONFIG_PATH}" "${dest_config_path}" CLUSTER_OPERATION_NAME1="cluster1-install-"`date "+%H-%M-%S"` # set vars-conf-cm.yml -sed -i "s/v1.30.4/v1.29.5/" "${dest_config_path}"/vars-conf-cm.yml +sed -i "s/v1.30.5/v1.29.5/" "${dest_config_path}"/vars-conf-cm.yml sed -i "s/e2e-cluster1-install/${CLUSTER_OPERATION_NAME1}/" "${dest_config_path}"/kubeanClusterOps.yml @@ -151,7 +151,7 @@ func_prepare_config_yaml "${SOURCE_CONFIG_PATH}" "${dest_config_path}" CLUSTER_OPERATION_NAME2="cluster1-upgrade-y" sed -i "s/e2e-cluster1-install/${CLUSTER_OPERATION_NAME2}/" "${dest_config_path}"/kubeanClusterOps.yml sed -i "s/cluster.yml/upgrade-cluster.yml/" "${dest_config_path}"/kubeanClusterOps.yml -sed -i "s/v1.30.4/v1.30.0/" "${dest_config_path}"/vars-conf-cm.yml +sed -i "s/v1.30.5/v1.30.0/" "${dest_config_path}"/vars-conf-cm.yml ## prepare cluster upgrade job yml --> upgrade from v1.30.0 to v1.30.4 dest_config_path="${REPO_ROOT}"/test/kubean_sonobouy_nightlye2e/e2e-upgrade-cluster-z/ @@ -159,7 +159,7 @@ func_prepare_config_yaml "${SOURCE_CONFIG_PATH}" "${dest_config_path}" CLUSTER_OPERATION_NAME3="cluster1-upgrade-z" sed -i "s/e2e-cluster1-install/${CLUSTER_OPERATION_NAME3}/" "${dest_config_path}"/kubeanClusterOps.yml sed -i "s/cluster.yml/upgrade-cluster.yml/" "${dest_config_path}"/kubeanClusterOps.yml -sed -i "s/v1.30.4/v1.30.4/" "${dest_config_path}"/vars-conf-cm.yml +sed -i "s/v1.30.5/v1.30.5/" "${dest_config_path}"/vars-conf-cm.yml ginkgo -v -race -timeout=6h --fail-fast ./test/kubean_sonobouy_nightlye2e/ -- --kubeconfig="${KUBECONFIG_FILE}" \ --clusterOperationName="${CLUSTER_OPERATION_NAME1}" --vmipaddr="${vm_ip_addr1}" --vmipaddr2="${vm_ip_addr2}" \ diff --git a/hack/yml_utils.sh b/hack/yml_utils.sh index 4a329a306..2e5c0a8a4 100644 --- a/hack/yml_utils.sh +++ b/hack/yml_utils.sh @@ -75,7 +75,7 @@ function yamlUtil::abstract_groupVars() { yq -i '.metrics_server_enabled = "true"' $groupVarYml yq -i '.local_path_provisioner_enabled = "true"' $groupVarYml yq -i '.kubeadm_init_timeout = "600s"' $groupVarYml - yq -i '.kube_version = "v1.30.4"' $groupVarYml + yq -i '.kube_version = "v1.30.5"' $groupVarYml } function yamlUtil::update_groupVars() { diff --git a/test/common/vars-conf-cm.yml b/test/common/vars-conf-cm.yml index 98be46688..c184d58b9 100644 --- a/test/common/vars-conf-cm.yml +++ b/test/common/vars-conf-cm.yml @@ -7,7 +7,7 @@ data: group_vars.yml: | # k8s-cluster unsafe_show_logs: true - kube_version: "v1.30.4" + kube_version: "v1.30.5" container_manager: containerd k8s_image_pull_policy: IfNotPresent kube_network_plugin: calico diff --git a/test/offline-common/vars-conf-cm.yml b/test/offline-common/vars-conf-cm.yml index 24cc7f963..e000c0a98 100644 --- a/test/offline-common/vars-conf-cm.yml +++ b/test/offline-common/vars-conf-cm.yml @@ -40,7 +40,7 @@ data: # github image repo define (ex multus only use that) github_image_repo: "{{registry_host}}/ghcr.io" # k8s-cluster - kube_version: "v1.30.4" + kube_version: "v1.30.5" container_manager: containerd k8s_image_pull_policy: IfNotPresent kube_network_plugin: calico diff --git a/test/tools/config.go b/test/tools/config.go index 355d52ec7..0ecefc91e 100644 --- a/test/tools/config.go +++ b/test/tools/config.go @@ -34,7 +34,7 @@ const ( const ( OriginK8Version = "v1.29.5" UpgradeK8Version_Y = "v1.30.0" - UpgradeK8Version_Z = "v1.30.4" + UpgradeK8Version_Z = "v1.30.5" NginxAlpha = "release-ci.daocloud.io/kubean/nginx:alpine" E2eInstallClusterYamlFolder = "e2e-install-cluster" )