Skip to content

Commit aeb81eb

Browse files
authored
setup: add "No Backend" option (#556)
* setup: add "No Backend" option * reccomend warnet auth
1 parent 5d0e187 commit aeb81eb

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

src/warnet/project.py

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,11 @@ def check_installation(tool_info: ToolInfo) -> ToolStatus:
209209
inquirer.List(
210210
"platform",
211211
message=click.style("Which platform would you like to use?", fg="blue", bold=True),
212-
choices=["Minikube", "Docker Desktop"],
212+
choices=[
213+
"Minikube",
214+
"Docker Desktop",
215+
"No Backend (Interacting with remote cluster, see `warnet auth --help`)",
216+
],
213217
)
214218
]
215219
answers = inquirer.prompt(questions)
@@ -219,15 +223,13 @@ def check_installation(tool_info: ToolInfo) -> ToolStatus:
219223
if answers["platform"] == "Docker Desktop":
220224
check_results.append(check_installation(docker_info))
221225
check_results.append(check_installation(docker_desktop_info))
222-
check_results.append(check_installation(kubectl_info))
223-
check_results.append(check_installation(helm_info))
224226
elif answers["platform"] == "Minikube":
225227
check_results.append(check_installation(docker_info))
226228
check_results.append(check_installation(minikube_info))
227229
if is_platform_darwin():
228230
check_results.append(check_installation(minikube_version_info))
229-
check_results.append(check_installation(kubectl_info))
230-
check_results.append(check_installation(helm_info))
231+
check_results.append(check_installation(kubectl_info))
232+
check_results.append(check_installation(helm_info))
231233
else:
232234
click.secho("Please re-run setup.", fg="yellow")
233235
sys.exit(1)

0 commit comments

Comments
 (0)