From e3e06a8ae296ba56fd510006f0dad932069dad2f Mon Sep 17 00:00:00 2001 From: Chuck McAndrew <6248903+dcmcand@users.noreply.github.com> Date: Wed, 10 Jan 2024 14:39:39 -0500 Subject: [PATCH] update upgrade command (#2198) Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> --- src/_nebari/upgrade.py | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/src/_nebari/upgrade.py b/src/_nebari/upgrade.py index a5227adf34..ef933f48ea 100644 --- a/src/_nebari/upgrade.py +++ b/src/_nebari/upgrade.py @@ -685,6 +685,26 @@ def _version_specific_upgrade( return config +class Upgrade_2024_1_1(UpgradeStep): + version = "2024.1.1" + + def _version_specific_upgrade( + self, config, start_version, config_filename: Path, *args, **kwargs + ): + rich.print("\n ⚠️ Warning ⚠️") + rich.print( + "-> Please run the [green]rm -rf stages[/green] so that we can regenerate an updated set of Terraform scripts for your deployment." + ) + rich.print("\n ⚠️ Deprecation Warning ⚠️") + rich.print( + "-> jupyterlab-videochat, retrolab, jupyter-tensorboard, jupyterlab-conda-store and jupyter-nvdashboard", + f"are no longer supported in Nebari version [green]{self.version}[/green] and will be uninstalled.", + ) + rich.print() + + return config + + __rounded_version__ = str(rounded_ver_parse(__version__)) # Manually-added upgrade steps must go above this line