@@ -136,25 +136,6 @@ def is_docker_desktop_running() -> tuple[bool, str]:
136
136
except FileNotFoundError as err :
137
137
return False , str (err )
138
138
139
- def is_kubectl_installed () -> tuple [bool , str ]:
140
- try :
141
- version_result = subprocess .run (
142
- ["kubectl" , "version" , "--client" ],
143
- capture_output = True ,
144
- text = True ,
145
- )
146
- location_result = subprocess .run (
147
- ["which" , "kubectl" ],
148
- capture_output = True ,
149
- text = True ,
150
- )
151
- if version_result .returncode == 0 and location_result .returncode == 0 :
152
- return True , location_result .stdout .strip ()
153
- else :
154
- return False , ""
155
- except FileNotFoundError as err :
156
- return False , str (err )
157
-
158
139
def is_helm_installed () -> tuple [bool , str ]:
159
140
try :
160
141
version_result = subprocess .run (["helm" , "version" ], capture_output = True , text = True )
@@ -210,12 +191,6 @@ def check_installation(tool_info: ToolInfo) -> ToolStatus:
210
191
install_instruction = "Please make sure minikube is running" ,
211
192
install_url = "https://minikube.sigs.k8s.io/docs/start/" ,
212
193
)
213
- kubectl_info = ToolInfo (
214
- tool_name = "Kubectl" ,
215
- is_installed_func = is_kubectl_installed ,
216
- install_instruction = "Install kubectl." ,
217
- install_url = "https://kubernetes.io/docs/tasks/tools/install-kubectl/" ,
218
- )
219
194
helm_info = ToolInfo (
220
195
tool_name = "Helm" ,
221
196
is_installed_func = is_helm_installed ,
@@ -241,7 +216,7 @@ def check_installation(tool_info: ToolInfo) -> ToolStatus:
241
216
print (" ╰───────────────────────────╯ " )
242
217
print (" " )
243
218
print (" Let's find out if your system has what it takes to run Warnet..." )
244
- print ("" )
219
+ print (" " )
245
220
246
221
try :
247
222
questions = [
@@ -270,7 +245,6 @@ def check_installation(tool_info: ToolInfo) -> ToolStatus:
270
245
if is_platform_darwin ():
271
246
check_results .append (check_installation (minikube_version_info ))
272
247
check_results .append (check_installation (minikube_running_info ))
273
- check_results .append (check_installation (kubectl_info ))
274
248
check_results .append (check_installation (helm_info ))
275
249
else :
276
250
click .secho ("Please re-run setup." , fg = "yellow" )
0 commit comments