Update clusteradm flag with new release (#28)

Signed-off-by: Jian Qiu <jqiu@redhat.com>
This commit is contained in:
Jian Qiu
2022-01-25 12:21:45 -05:00
committed by GitHub
parent 7b383e0c07
commit 7667bb2a2f
2 changed files with 2 additions and 2 deletions
+2 -2
View File
@@ -22,11 +22,11 @@ joincmd=$(clusteradm init --use-bootstrap-token | grep clusteradm)
kubectl config use ${c1ctx}
echo "Join cluster1 to hub"
$(echo ${joincmd} | sed "s/<cluster_name>/$c1/g")
$(echo ${joincmd} --force-internal-endpoint-lookup --wait | sed "s/<cluster_name>/$c1/g")
kubectl config use ${c2ctx}
echo "Join cluster2 to hub"
$(echo ${joincmd} | sed "s/<cluster_name>/$c2/g")
$(echo ${joincmd} --force-internal-endpoint-lookup --wait | sed "s/<cluster_name>/$c2/g")
kubectl config use ${hubctx}
echo "Accept join of cluster1 and cluster2"