Skip to content

Commit 24a0805

Browse files
warjiangdingwenjiang
authored andcommitted
fix: script error for start test-env
Signed-off-by: dingwenjiang <[email protected]>
1 parent f21a822 commit 24a0805

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

hack/local-up-karmada.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -245,12 +245,12 @@ for cluster in "${MEMBER_CLUSTERS[@]}"; do
245245

246246
# wait all of clusters member1, member2 and member3 status is ready
247247
INFO "Wait cluster ${cluster} join/register status ready"
248-
util::misc::wait_cluster_ready "${KARMADA_KUBECONFIG_PATH}" "${KARMADA_APISERVER}" "${CLUSTER1}"
248+
util::misc::wait_cluster_ready "${KARMADA_KUBECONFIG_PATH}" "${KARMADA_APISERVER}" "${cluster}"
249249
done
250250

251251
# merge temporary kubeconfig of member clusters by kubectl
252252
# variable define in scripts will not make effect to parent shell thread
253-
KUBECONFIG=$(find "${KUBECONFIG_DIR}" -maxdepth 1 -type f | grep "${MEMBER_CLUSTER_KUBECONFIG_PREFIX}" | tr '\n' ':')
253+
export KUBECONFIG=$(find "${KUBECONFIG_DIR}" -maxdepth 1 -type f | grep "${MEMBER_CLUSTER_KUBECONFIG_PREFIX}" | tr '\n' ':')
254254
kubectl config view --flatten > "${MEMBER_CLUSTER_KUBECONFIG_PATH}"
255255
for tmp_config_file in $(find "${KUBECONFIG_DIR}" -maxdepth 1 -type f | grep "${MEMBER_CLUSTER_KUBECONFIG_PREFIX}"); do
256256
DEBUG "Remove ${tmp_config_file}"

0 commit comments

Comments
 (0)