Skip to content

Commit 7e9989c

Browse files
authored
Merge pull request #445 from mplsgrant/2024-08-kubectl-check
2 parents 9e5d3c7 + 9af1090 commit 7e9989c

File tree

1 file changed

+22
-2
lines changed

1 file changed

+22
-2
lines changed

resources/scripts/setup_minikube.sh

Lines changed: 22 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,24 @@ else
7272
ERROR_CODE=127
7373
fi
7474

75+
kubectl_path=$(command -v kubectl || true)
76+
if [ -n "$kubectl_path" ]; then
77+
print_partial_message " ⭐️ Found " "kubectl" ": $kubectl_path " "$BOLD"
78+
else
79+
print_partial_message " 💥 Could not find " "kubectl" ". Please follow this link to install it..." "$BOLD"
80+
print_message "" " https://kubernetes.io/docs/tasks/tools/" "$BOLD"
81+
ERROR_CODE=127
82+
fi
83+
84+
helm_path=$(command -v helm || true)
85+
if [ -n "$helm_path" ]; then
86+
print_partial_message " ⭐️ Found " "helm" ": $helm_path" "$BOLD"
87+
else
88+
print_partial_message " 💥 Could not find " "helm" ". Please follow this link to install it..." "$BOLD"
89+
print_message "" " https://helm.sh/docs/intro/install/" "$BOLD"
90+
ERROR_CODE=127
91+
fi
92+
7593
if [ $ERROR_CODE -ne 0 ]; then
7694
print_message "" "There were errors in the setup process. Please fix them and try again." "$BOLD"
7795
exit $ERROR_CODE
@@ -96,6 +114,8 @@ fi
96114
# Start minikube with the constructed command
97115
eval "$MINIKUBE_CMD"
98116

117+
echo
118+
print_message "" "Next, run the following command to deploy warnet" ""
119+
print_message "" " warcli cluster deploy" "$BOLD"
120+
print_partial_message " After that, run " "warcli network start" " to start the network." "$BOLD"
99121

100-
101-
echo Done...

0 commit comments

Comments
 (0)