Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Jan 9, 2025
1 parent 3f76268 commit c0f49e4
Showing 1 changed file with 12 additions and 6 deletions.
18 changes: 12 additions & 6 deletions deploy.py
Original file line number Diff line number Diff line change
Expand Up @@ -239,12 +239,18 @@ def deploy(release, name=None, dry_run=False, diff=False, ip_address=None):
helm.extend(["-f", config_file])

if release == "localhost":
helm.extend([
"--set", f"binderhub.config.BinderHub.hub_url=http://jupyterhub.{ip_address}.nip.io",
"--set", f"binderhub.ingress.hosts={{{ip_address}.nip.io}}",
"--set", f"binderhub.jupyterhub.ingress.hosts={{jupyterhub.{ip_address}.nip.io}}",
"--set", f"static.ingress.hosts={{static.{ip_address}.nip.io}}",
])
helm.extend(
[
"--set",
f"binderhub.config.BinderHub.hub_url=http://jupyterhub.{ip_address}.nip.io",
"--set",
f"binderhub.ingress.hosts={{{ip_address}.nip.io}}",
"--set",
f"binderhub.jupyterhub.ingress.hosts={{jupyterhub.{ip_address}.nip.io}}",
"--set",
f"static.ingress.hosts={{static.{ip_address}.nip.io}}",
]
)

check_call(helm, dry_run)
print(
Expand Down

0 comments on commit c0f49e4

Please sign in to comment.