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

Commit

Permalink
Update singleuser profiles to use profile resource parsing
Browse files Browse the repository at this point in the history
  • Loading branch information
vpavlin committed May 14, 2020
1 parent 068b82f commit 986185b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
6 changes: 4 additions & 2 deletions .jupyter/jupyterhub_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -125,13 +125,15 @@
# Work out hostname for the exposed route of the JupyterHub server. This
# is tricky as we need to use the REST API to query it.

verify_ssl = False

from kubernetes import client, config
from openshift.dynamic import DynamicClient

config.load_incluster_config()

configuration = client.Configuration()
configuration.verify_ssl = False
configuration.verify_ssl = verify_ssl

oapi_client = DynamicClient(
client.ApiClient(configuration=configuration)
Expand Down Expand Up @@ -159,7 +161,7 @@ class OpenShiftSpawner(KubeSpawner):
def __init__(self, *args, **kwargs):
super().__init__(*args, **kwargs)
self.single_user_services = []
self.single_user_profiles = SingleuserProfiles(server_url, client_secret, gpu_mode=os.environ.get('GPU_MODE'))
self.single_user_profiles = SingleuserProfiles(gpu_mode=os.environ.get('GPU_MODE'), verify_ssl=verify_ssl)
self.gpu_mode = self.single_user_profiles.gpu_mode
self.gpu_count = 0
self.deployment_size = None
Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
openshift
jupyterhub-kubespawner==0.11.1
git+https://github.com/vpavlin/jupyterhub-singleuser-profiles.git@feature/handle-gpu
git+https://github.com/vpavlin/jupyterhub-singleuser-profiles.git@068b9ea058666ae662919bdec7928c4ab186caa0
git+https://github.com/vpavlin/jupyter-publish-extension.git@7cbf34e494fd9a0a79e9cd9a8c1d48a6775b9f49
git+https://github.com/vpavlin/oauthenticator.git

0 comments on commit 986185b

Please sign in to comment.