Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
inc0 committed Mar 22, 2018
1 parent 23b81c5 commit e26874b
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
1 change: 0 additions & 1 deletion kubeflow/core/jupyterhub.libsonnet
Expand Up @@ -186,7 +186,6 @@ c.RemoteUserAuthenticator.header_name = 'x-goog-authenticated-user-email'",
{
name: "NOTEBOOK_PVC_MOUNT",
value: notebookPVCMount

},
]
}, // jupyterHub container
Expand Down
2 changes: 1 addition & 1 deletion kubeflow/core/jupyterhub_spawner.py
Expand Up @@ -93,7 +93,7 @@ def extra_resource_limits(self):
# TODO(jlewi): Verify this works on minikube.
# TODO(jlewi): Should we set c.KubeSpawner.singleuser_fs_gid = 1000
# see https://github.com/kubeflow/kubeflow/pull/22#issuecomment-350500944
pvc_mount = os.environ.get("NOTEBOOK_PVC_MOUNT")
pvc_mount = os.environ.get('NOTEBOOK_PVC_MOUNT')
if pvc_mount:
c.KubeSpawner.user_storage_pvc_ensure = True
# How much disk space do we want?
Expand Down
4 changes: 4 additions & 0 deletions kubeflow/core/tests/jupyterhub_test.jsonnet
Expand Up @@ -105,6 +105,10 @@ std.assertEqual(jupyterhub.parts(params.namespace).jupyterHub(params.jupyterHubI
"containerPort": 8081
}
],
"env": [
"name": "NOTEBOOK_PVC_MOUNT",
"value": "/home/jovyan/work"
]
"volumeMounts": [
{
"mountPath": "/etc/config",
Expand Down

0 comments on commit e26874b

Please sign in to comment.