Skip to content

Commit

Permalink
Commit triggered by a change on the main branch of helm-charts-dev
Browse files Browse the repository at this point in the history
  • Loading branch information
rconway committed Feb 20, 2024
1 parent d588440 commit 15d82e5
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
2 changes: 1 addition & 1 deletion charts/application-hub/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ type: application
# This is the chart version. This version number should be incremented each time you make changes
# to the chart and its templates, including the app version.
# Versions are expected to follow Semantic Versioning (https://semver.org/)
version: 2.0.53
version: 2.0.54

# This is the version number of the application being deployed. This version number should be
# incremented each time you make changes to the application. Versions are not expected to
Expand Down
8 changes: 8 additions & 0 deletions charts/application-hub/files/hub/jupyter_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,14 @@ def pre_spawn_hook(spawner):

workspace.initialise()

profile_id = workspace.config_parser.get_profile_by_slug(slug=profile_slug).id

default_url = workspace.config_parser.get_profile_default_url(profile_id=profile_id)

if default_url:
spawner.log.info(f"Setting default url to {default_url}")
spawner.default_url = default_url

spawner.log.info(f"env: {spawner.environment.get('JPY_DEFAULT_URL')}")

def post_stop_hook(spawner):
Expand Down

0 comments on commit 15d82e5

Please sign in to comment.