Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Include deprecation notes for init/deploy subcommands #2582

Merged
merged 4 commits into from
Jul 29, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions src/_nebari/subcommands/deploy.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,11 @@ def deploy(
stages.remove(stage)
rich.print("Skipping remote state provision")

# Digital Ocean support deprecation warning -- Nebari 2024.7.1
if config.provider == "do" and not disable_prompt:
msg = "Digital Ocean support is currently being deprecated and will be removed in a future release. Would you like to continue?"
typer.confirm(msg)

deploy_configuration(
config,
stages,
Expand Down
8 changes: 8 additions & 0 deletions src/_nebari/subcommands/init.py
Original file line number Diff line number Diff line change
Expand Up @@ -595,6 +595,13 @@ def init(
inputs.cloud_provider = check_cloud_provider_creds(
cloud_provider, disable_prompt
)

# Digital Ocean deprecation warning -- Nebari 2024.7.1
if inputs.cloud_provider == ProviderEnum.do.value.lower():
rich.print(
":warning: Digital Ocean support is being deprecated and support will be removed in the future. :warning:\n"
)

inputs.region = check_cloud_provider_region(region, inputs.cloud_provider)
inputs.kubernetes_version = check_cloud_provider_kubernetes_version(
kubernetes_version, inputs.cloud_provider, inputs.region
Expand Down Expand Up @@ -662,6 +669,7 @@ def guided_init_wizard(ctx: typer.Context, guided_init: str):
"\n\t❗️ [purple]local[/purple] requires Docker and Kubernetes running on your local machine. "
"[italic]Currently only available on Linux OS.[/italic]"
"\n\t❗️ [purple]existing[/purple] refers to an existing Kubernetes cluster that Nebari can be deployed on.\n"
"\n\t❗️ [red]Digital Ocean[/red] is currently being deprecated and support will be removed in the future.\n"
marcelovilla marked this conversation as resolved.
Show resolved Hide resolved
)
)
# try:
Expand Down
Loading