Skip to content

Commit

Permalink
add deprecation notifictions for init/deploy subcommands
Browse files Browse the repository at this point in the history
  • Loading branch information
viniciusdc committed Jul 26, 2024
1 parent 2000996 commit 83e81f7
Show file tree
Hide file tree
Showing 2 changed files with 6 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.get("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? [y/N]"
typer.confirm(msg)

deploy_configuration(
config,
stages,
Expand Down
1 change: 1 addition & 0 deletions src/_nebari/subcommands/init.py
Original file line number Diff line number Diff line change
Expand Up @@ -662,6 +662,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 83e81f7

Please sign in to comment.