docs: Made some typo fixes in the setup script (#883)
Some checks are pending
Scorecard supply-chain security / Scorecard analysis (push) Waiting to run

Signed-off-by: Anu-Ra-g <nayakanurag078@gmail.com>
This commit is contained in:
Anurag Nayak
2025-03-11 02:37:31 -07:00
committed by GitHub
parent 8b3a8204ba
commit e4eff8b384
2 changed files with 5 additions and 5 deletions

View File

@@ -57,7 +57,7 @@ To solve this, try increasing your `max_user_instances` and `max_user_watches`:
Once you've increased the limits, delete the clusters already created and try again:
```
$ kind delete clusters hub cluster1 cluster2
$ ./setup-ocm.sh
$ ./local-up.sh
```

View File

@@ -16,17 +16,17 @@ kind create cluster --name "${hub}"
kind create cluster --name "${c1}"
kind create cluster --name "${c2}"
echo "Initialize the ocm hub cluster\n"
echo -e "Initialize the ocm hub cluster\n"
clusteradm init --wait --context ${hubctx}
joincmd=$(clusteradm get token --context ${hubctx} | grep clusteradm)
echo "Join cluster1 to hub\n"
echo -e "Join cluster1 to hub\n"
$(echo ${joincmd} --force-internal-endpoint-lookup --wait --context ${c1ctx} | sed "s/<cluster_name>/$c1/g")
echo "Join cluster2 to hub\n"
echo -e "Join cluster2 to hub\n"
$(echo ${joincmd} --force-internal-endpoint-lookup --wait --context ${c2ctx} | sed "s/<cluster_name>/$c2/g")
echo "Accept join of cluster1 and cluster2"
echo -e "Accept join of cluster1 and cluster2\n"
clusteradm accept --context ${hubctx} --clusters ${c1},${c2} --wait
kubectl get managedclusters --all-namespaces --context ${hubctx}