Skip to content

Commit

Permalink
Include deprecation notes for init/deploy subcommands (#2582)
Browse files Browse the repository at this point in the history
  • Loading branch information
viniciusdc authored Jul 29, 2024
1 parent 2000996 commit aa63066
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
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"
)
)
# try:
Expand Down

0 comments on commit aa63066

Please sign in to comment.