Skip to content

Commit

Permalink
Merge pull request #1433 from FloatXD/e2e-up-6
Browse files Browse the repository at this point in the history
[Test]Before using --limit run playbook facts.yml in test
  • Loading branch information
ErikJiang authored Dec 18, 2024
2 parents db3299c + 5918413 commit 48007b0
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions hack/run-nightly-cluster-e2e.sh
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,9 @@ CLUSTER_OPERATION_NAME2="cluster1-add-worker"
sed -i "s/e2e-cluster1-install/${CLUSTER_OPERATION_NAME2}/" "${dest_config_path}"/kubeanClusterOps.yml
sed -i "s#image:#image: ${SPRAY_JOB}#" "${dest_config_path}"/kubeanClusterOps.yml
sed -i "s/action: cluster.yml/action: scale.yml\n extraArgs: --limit=node2/" ${dest_config_path}/kubeanClusterOps.yml
sed -i '/remove-pkgs.yml/a\
- actionType: playbook\
action: facts.yml' ${dest_config_path}/kubeanClusterOps.yml

## prepare kubean remove worker job yml files
dest_config_path="${REPO_ROOT}"/test/kubean_add_remove_worker_nightlye2e/remove-worker-node
Expand All @@ -125,6 +128,9 @@ CLUSTER_OPERATION_NAME3="cluster1-remove-worker"
sed -i "s/e2e-cluster1-install/${CLUSTER_OPERATION_NAME3}/" "${dest_config_path}"/kubeanClusterOps.yml
sed -i "s#image:#image: ${SPRAY_JOB}#" "${dest_config_path}"/kubeanClusterOps.yml
sed -i "s/action: cluster.yml/action: remove-node.yml\n extraArgs: -e node=node2/" ${dest_config_path}/kubeanClusterOps.yml
sed -i '/remove-pkgs.yml/a\
- actionType: playbook\
action: facts.yml' ${dest_config_path}/kubeanClusterOps.yml
ginkgo -v -timeout=3h -race --fail-fast ./test/kubean_add_remove_worker_nightlye2e/ -- --kubeconfig="${KUBECONFIG_FILE}" \
--clusterOperationName="${CLUSTER_OPERATION_NAME1}" --vmipaddr="${vm_ip_addr1}" --vmipaddr2="${vm_ip_addr2}" \
--isOffline="${OFFLINE_FLAG}" --arch=${ARCH} --vmPassword="${AMD_ROOT_PASSWORD}"
Expand Down

0 comments on commit 48007b0

Please sign in to comment.