Skip to content
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion helm-chart/binderhub/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ spec:
key: "binder.hub-token"
{{- if .Values.config.BinderHub.auth_enabled }}
- name: JUPYTERHUB_API_URL
value: {{ (print (.Values.config.BinderHub.hub_url | trimSuffix "/") "/hub/api/") }}
value: {{ print (.Values.config.BinderHub.hub_url | default "" | trimSuffix "/") "/hub/api/" }}
- name: JUPYTERHUB_BASE_URL
value: {{ .Values.jupyterhub.hub.baseUrl | quote }}
- name: JUPYTERHUB_CLIENT_ID
Expand Down
3 changes: 2 additions & 1 deletion helm-chart/images/binderhub/binderhub_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,8 @@ def get_value(key, default=None):
c.BinderHub.build_namespace = os.environ['BUILD_NAMESPACE']

if c.BinderHub.auth_enabled:
hub_url = urlparse(c.BinderHub.hub_url)
hub_url = get_value('config.BinderHub.hub_url', '')
hub_url = urlparse(hub_url)
c.HubOAuth.hub_host = '{}://{}'.format(hub_url.scheme, hub_url.netloc)
if 'base_url' in c.BinderHub:
c.HubOAuth.base_url = c.BinderHub.base_url
Expand Down