@@ -1330,8 +1330,7 @@ def _version_specific_upgrade(
13301330 provider_full_name = provider_enum_name_map [provider ]
13311331 if not config .get (provider_full_name , {}).get ("node_groups" , {}):
13321332 try :
1333- text = textwrap .dedent (
1334- f"""
1333+ text = textwrap .dedent (f"""
13351334 The default node groups for GCP have been changed to cost efficient e2 family nodes reducing the running cost of Nebari on GCP by ~50%.
13361335 This change will affect your current deployment, and will result in ~15 minutes of downtime during the upgrade step as the node groups are switched out, but shouldn't result in data loss.
13371336
@@ -1342,8 +1341,7 @@ def _version_specific_upgrade(
13421341
13431342 Would you like to upgrade to the cost effective node groups [purple]{ config_filename } [/purple]?
13441343 If not, select "N" and the old default node groups will be added to the nebari config file.
1345- """
1346- )
1344+ """ )
13471345 continue_ = kwargs .get ("attempt_fixes" , False ) or Confirm .ask (
13481346 text ,
13491347 default = True ,
@@ -1369,8 +1367,7 @@ def _version_specific_upgrade(
13691367 except KeyError :
13701368 pass
13711369 else :
1372- text = textwrap .dedent (
1373- """
1370+ text = textwrap .dedent ("""
13741371 The default node groups for GCP have been changed to cost efficient e2 family nodes reducing the running cost of Nebari on GCP by ~50%.
13751372 Consider upgrading your node group instance types to the new default configuration.
13761373
@@ -1379,8 +1376,7 @@ def _version_specific_upgrade(
13791376 As always, make sure to backup data before upgrading. See https://www.nebari.dev/docs/how-tos/manual-backup for more information.
13801377
13811378 The new default node groups instances are:
1382- """
1383- )
1379+ """ )
13841380 text += json .dumps (
13851381 {
13861382 "general" : {"instance" : "e2-highmem-4" },
@@ -1466,8 +1462,7 @@ def _version_specific_upgrade(
14661462
14671463 rich .print ("\n ⚠️ Upgrade Warning ⚠️" )
14681464
1469- text = textwrap .dedent (
1470- """
1465+ text = textwrap .dedent ("""
14711466 Please ensure no users are currently logged in prior to deploying this
14721467 update.
14731468
@@ -1488,8 +1483,7 @@ def _version_specific_upgrade(
14881483 mounted.
14891484
14901485 For more details check our [green][link=https://www.nebari.dev/docs/references/release/]release notes[/link][/green].
1491- """
1492- )
1486+ """ )
14931487 rich .print (text )
14941488 keycloak_admin = None
14951489
@@ -1521,15 +1515,11 @@ def _version_specific_upgrade(
15211515 )
15221516 except ValueError as e :
15231517 if "invalid_grant" in str (e ):
1524- rich .print (
1525- textwrap .dedent (
1526- """
1518+ rich .print (textwrap .dedent ("""
15271519 [red bold]Failed to connect to the Keycloak server.[/red bold]\n
15281520 [yellow]Please set the [bold]KEYCLOAK_ADMIN_USERNAME[/bold] and [bold]KEYCLOAK_ADMIN_PASSWORD[/bold]
15291521 environment variables with the Keycloak root credentials and try again.[/yellow]
1530- """
1531- )
1532- )
1522+ """ ))
15331523 exit ()
15341524 else :
15351525 # Handle other exceptions
@@ -1632,8 +1622,7 @@ def _version_specific_upgrade(
16321622 ):
16331623 rich .print ("\n ⚠️ Upgrade Warning ⚠️" )
16341624
1635- text = textwrap .dedent (
1636- """
1625+ text = textwrap .dedent ("""
16371626 In this release, we have updated our maximum supported Kubernetes version from 1.29 to 1.31.
16381627 Please note that Nebari will NOT automatically upgrade your running Kubernetes version as part of
16391628 the redeployment process.
@@ -1644,8 +1633,7 @@ def _version_specific_upgrade(
16441633
16451634 For more information on upgrading Kubernetes for your specific cloud provider, please visit:
16461635 https://www.nebari.dev/docs/how-tos/kubernetes-version-upgrade
1647- """
1648- )
1636+ """ )
16491637 rich .print (text )
16501638
16511639 # If the Nebari provider is Azure, we must handle a major version upgrade
@@ -1656,9 +1644,7 @@ def _version_specific_upgrade(
16561644
16571645 if config .get ("provider" , "" ) == "azure" :
16581646 rich .print ("\n ⚠️ Azure Provider Upgrade Notice ⚠️" )
1659- rich .print (
1660- textwrap .dedent (
1661- """
1647+ rich .print (textwrap .dedent ("""
16621648 In this Nebari release, the Azure Terraform provider has been upgraded
16631649 from version 3.97.1 to 4.7.0. This major update includes internal schema
16641650 changes for certain resources, most notably the `azurerm_storage_account`.
@@ -1669,9 +1655,7 @@ def _version_specific_upgrade(
16691655
16701656 For detailed information on the Azure provider 4.x changes, please visit:
16711657 https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs/guides/4.0-upgrade-guide
1672- """
1673- )
1674- )
1658+ """ ))
16751659
16761660 # Prompt user for confirmation
16771661 continue_ = kwargs .get ("attempt_fixes" , False ) or Confirm .ask (
@@ -1752,8 +1736,7 @@ def _version_specific_upgrade(
17521736 ]:
17531737 rich .print ("\n ⚠️ Node Taints Update ⚠️" )
17541738
1755- text = textwrap .dedent (
1756- """
1739+ text = textwrap .dedent ("""
17571740 Starting with Nebari version 2025.4.1, node taints will be automatically applied to all non-general node groups by default.
17581741 Node taints help ensure that specific workloads run only on designated nodes,
17591742 improving resource utilization and isolation. This change will include:
@@ -1763,8 +1746,7 @@ def _version_specific_upgrade(
17631746
17641747 If you prefer not to use node taints, you can opt out by adding `taints: []`
17651748 to each node group definition in your nebari-config.yaml file.
1766- """
1767- )
1749+ """ )
17681750 rich .print (text )
17691751
17701752 provider_full_name = provider_enum_name_map .get (provider )
0 commit comments