Skip to content

Commit

Permalink
fix config error in e2e upgrade test
Browse files Browse the repository at this point in the history
Signed-off-by: panyintian.fu <panyintian.fu@daocloud.io>
  • Loading branch information
panyintian.fu committed Jun 19, 2024
1 parent 2c53006 commit 2d6ee2f
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions hack/run-nightly-cluster-e2e.sh
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,7 @@ cp -f "${SOURCE_CONFIG_PATH}"/vars-conf-cm.yml "${dest_config_path}"
cp -f "${SOURCE_CONFIG_PATH}"/kubeanCluster.yml "${dest_config_path}"
cp -f "${SOURCE_CONFIG_PATH}"/kubeanClusterOps.yml "${dest_config_path}"

# set vars-conf-cm.yml
sed -i "s/v1.29.5/v1.28.9/" "${dest_config_path}"/vars-conf-cm.yml


# set hosts-conf-cm.yml
sed -i '/ansible_connection/d' "${dest_config_path}"/hosts-conf-cm.yml
Expand Down Expand Up @@ -139,6 +138,10 @@ sshpass -p "${AMD_ROOT_PASSWORD}" scp -o StrictHostKeyChecking=no "${REPO_ROOT}
dest_config_path="${REPO_ROOT}"/test/kubean_sonobouy_nightlye2e/e2e-install-cluster-sonobouy/
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/e2e-cluster1-install/${CLUSTER_OPERATION_NAME1}/" "${dest_config_path}"/kubeanClusterOps.yml


Expand Down

0 comments on commit 2d6ee2f

Please sign in to comment.