Skip to content
Snippets Groups Projects
Commit 45207c1a authored by Nico P's avatar Nico P
Browse files

fixed install_msa_test script

parent 8dbd0807
No related branches found
No related tags found
No related merge requests found
......@@ -5,8 +5,8 @@ SCRIPT_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )
curl -sfL https://get.k3s.io | sh -
#Download Linkerd and install onto cluster
linkerd
if [$? -eq 0]; then
linkerd version
if [ $? -eq 0 ]; then
echo Linkerd already installed
else
curl --proto '=https' --tlsv1.2 -sSfL https://run.linkerd.io/install | sh
......@@ -19,8 +19,8 @@ linkerd install --crds | kubectl apply -f -
linkerd install | kubectl apply -f -
#Install Helm if not present
helm
if [$? -eq 0]; then
helm version
if [ $? -eq 0 ]; then
echo Helm already installed
else
curl https://baltocdn.com/helm/signing.asc | gpg --dearmor | sudo tee /usr/share/keyrings/helm.gpg > /dev/null
......@@ -38,10 +38,10 @@ while [ $counter -le $retries ]
do
((counter++))
kubectl get ingressroute
if [$? -eq 0]; then
if [ $? -eq 0 ]; then
break
else
if [$counter -eq $retries]; then
if [ $counter -eq $retries ]; then
echo CRDs are not yet available, please install helm-chart manually
exit 1
fi
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment