Skip to content
This repository has been archived by the owner on Mar 17, 2023. It is now read-only.

Commit

Permalink
Merge pull request #117 from vpavlin/feature/update-jsp-0.6.3
Browse files Browse the repository at this point in the history
Update JSP to 0.6.3
  • Loading branch information
vpavlin authored Sep 15, 2021
2 parents a72f4ec + 31e7969 commit fed1802
Show file tree
Hide file tree
Showing 3 changed files with 145 additions and 143 deletions.
13 changes: 7 additions & 6 deletions .jupyter/jupyterhub_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,18 +9,19 @@
# Do not shut down singleuser servers on restart
c.JupyterHub.cleanup_servers = False

custom_notebook_namespace = os.environ.get('NOTEBOOK_NAMESPACE')
if not custom_notebook_namespace:
custom_notebook_namespace = None;

import uuid
jsp_api_dict = {
'KUBERNETES_SERVICE_HOST': os.environ['KUBERNETES_SERVICE_HOST'],
'KUBERNETES_SERVICE_PORT': os.environ['KUBERNETES_SERVICE_PORT'],
'JUPYTERHUB_LOGIN_URL': None,
'NOTEBOOK_NAMESPACE': custom_notebook_namespace
'JUPYTERHUB_LOGIN_URL': None
}

custom_notebook_namespace = os.environ.get('NOTEBOOK_NAMESPACE')
if not custom_notebook_namespace:
custom_notebook_namespace = None;
else:
jsp_api_dict['NOTEBOOK_NAMESPACE'] = custom_notebook_namespace #Set only if not None, None type in env vars causes subprocess.py to crash with error

from jupyterhub_singleuser_profiles.openshift import OpenShift

openshift = OpenShift(namespace=namespace)
Expand Down
2 changes: 1 addition & 1 deletion Pipfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ verify_ssl = true

[packages]
openshift = "==0.11.2"
jupyterhub-singleuser-profiles = "==0.6.0"
jupyterhub-singleuser-profiles = "==0.6.3"
oauthenticator = {ref = "d98936da37569b7bb400c6854b07041dce3e7f87",git = "https://github.com/opendatahub-io/oauthenticator.git", editable = true}
jupyterhub-traefik-proxy = {ref = "b468da04bf0057e9baeb458de6c3f9f677cfb79e", git = "https://github.com/opendatahub-io/traefik-proxy.git", editable = true}
jupyterhub-idle-culler = "==1.1"
Expand Down
Loading

0 comments on commit fed1802

Please sign in to comment.