mirror of
https://github.com/open-cluster-management-io/ocm.git
synced 2026-08-23 22:26:49 +00:00
Update clusteradm flag with new release (#28)
Signed-off-by: Jian Qiu <jqiu@redhat.com>
This commit is contained in:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user