Skip to content

Commit

Permalink
Merge pull request #1364 from FloatXD/up-e2e-14
Browse files Browse the repository at this point in the history
[Test]update kube_version in e2e test
  • Loading branch information
FloatXD authored Sep 11, 2024
2 parents b9da66a + 8ee184c commit fae09f2
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 12 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/verify-kubespray.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ jobs:
echo ${{ runner.os }}
echo ${{ runner.arch }}
echo ${{ github.workspace }}
export KUBE_VERSION=v1.29.5
export KUBE_VERSION=v1.30.4
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:
Expand Down
10 changes: 5 additions & 5 deletions hack/run-nightly-cluster-e2e.sh
Original file line number Diff line number Diff line change
Expand Up @@ -140,26 +140,26 @@ 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.29.5/v1.28.9/" "${dest_config_path}"/vars-conf-cm.yml
sed -i "s/v1.30.4/v1.29.5/" "${dest_config_path}"/vars-conf-cm.yml

sed -i "s/e2e-cluster1-install/${CLUSTER_OPERATION_NAME1}/" "${dest_config_path}"/kubeanClusterOps.yml


## prepare cluster upgrade job yml --> upgrade from v1.28.9 to v1.29.0
## prepare cluster upgrade job yml --> upgrade from v1.29.5 to v1.30.0
dest_config_path="${REPO_ROOT}"/test/kubean_sonobouy_nightlye2e/e2e-upgrade-cluster-y/
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.29.5/v1.29.0/" "${dest_config_path}"/vars-conf-cm.yml
sed -i "s/v1.30.4/v1.30.0/" "${dest_config_path}"/vars-conf-cm.yml

## prepare cluster upgrade job yml --> upgrade from v1.29.0 to v1.29.5
## 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/
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.29.5/v1.29.5/" "${dest_config_path}"/vars-conf-cm.yml
sed -i "s/v1.30.4/v1.30.4/" "${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}" \
Expand Down
2 changes: 1 addition & 1 deletion hack/yml_utils.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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.29.5"' $groupVarYml
yq -i '.kube_version = "v1.30.4"' $groupVarYml
}

function yamlUtil::update_groupVars() {
Expand Down
2 changes: 1 addition & 1 deletion test/common/vars-conf-cm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ data:
group_vars.yml: |
# k8s-cluster
unsafe_show_logs: true
kube_version: "v1.29.5"
kube_version: "v1.30.4"
container_manager: containerd
k8s_image_pull_policy: IfNotPresent
kube_network_plugin: calico
Expand Down
2 changes: 1 addition & 1 deletion test/offline-common/vars-conf-cm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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.29.5"
kube_version: "v1.30.4"
container_manager: containerd
k8s_image_pull_policy: IfNotPresent
kube_network_plugin: calico
Expand Down
6 changes: 3 additions & 3 deletions test/tools/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,9 @@ const (
)

const (
OriginK8Version = "v1.28.9"
UpgradeK8Version_Y = "v1.29.0"
UpgradeK8Version_Z = "v1.29.5"
OriginK8Version = "v1.29.5"
UpgradeK8Version_Y = "v1.30.0"
UpgradeK8Version_Z = "v1.30.4"
NginxAlpha = "release-ci.daocloud.io/kubean/nginx:alpine"
E2eInstallClusterYamlFolder = "e2e-install-cluster"
)
Expand Down

0 comments on commit fae09f2

Please sign in to comment.