Skip to content

Commit

Permalink
Merge pull request #81 from warjiang/fix/local-test-env
Browse files Browse the repository at this point in the history
fix: script error for start test-env
  • Loading branch information
karmada-bot authored Aug 12, 2024
2 parents f21a822 + 24a0805 commit 650ef60
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions hack/local-up-karmada.sh
Original file line number Diff line number Diff line change
Expand Up @@ -245,12 +245,12 @@ for cluster in "${MEMBER_CLUSTERS[@]}"; do

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

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

0 comments on commit 650ef60

Please sign in to comment.