File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff 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 } "
249249done
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' ' :' )
254254kubectl config view --flatten > " ${MEMBER_CLUSTER_KUBECONFIG_PATH} "
255255for tmp_config_file in $( find " ${KUBECONFIG_DIR} " -maxdepth 1 -type f | grep " ${MEMBER_CLUSTER_KUBECONFIG_PREFIX} " ) ; do
256256 DEBUG " Remove ${tmp_config_file} "
You can’t perform that action at this time.
0 commit comments