Skip to content

Commit

Permalink
setup: add "No Backend" option (#556)
Browse files Browse the repository at this point in the history
* setup: add "No Backend" option

* reccomend warnet auth
  • Loading branch information
pinheadmz authored Sep 10, 2024
1 parent 5d0e187 commit aeb81eb
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions src/warnet/project.py
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,11 @@ def check_installation(tool_info: ToolInfo) -> ToolStatus:
inquirer.List(
"platform",
message=click.style("Which platform would you like to use?", fg="blue", bold=True),
choices=["Minikube", "Docker Desktop"],
choices=[
"Minikube",
"Docker Desktop",
"No Backend (Interacting with remote cluster, see `warnet auth --help`)",
],
)
]
answers = inquirer.prompt(questions)
Expand All @@ -219,15 +223,13 @@ def check_installation(tool_info: ToolInfo) -> ToolStatus:
if answers["platform"] == "Docker Desktop":
check_results.append(check_installation(docker_info))
check_results.append(check_installation(docker_desktop_info))
check_results.append(check_installation(kubectl_info))
check_results.append(check_installation(helm_info))
elif answers["platform"] == "Minikube":
check_results.append(check_installation(docker_info))
check_results.append(check_installation(minikube_info))
if is_platform_darwin():
check_results.append(check_installation(minikube_version_info))
check_results.append(check_installation(kubectl_info))
check_results.append(check_installation(helm_info))
check_results.append(check_installation(kubectl_info))
check_results.append(check_installation(helm_info))
else:
click.secho("Please re-run setup.", fg="yellow")
sys.exit(1)
Expand Down

0 comments on commit aeb81eb

Please sign in to comment.