From a74990d0ad71462a38784d286536ed65e597c7bb Mon Sep 17 00:00:00 2001 From: Benjamin Raethlein Date: Mon, 23 Sep 2019 14:57:40 +0200 Subject: [PATCH] Allow overriding list of workspace_images via config,yaml in Kubernetes mode --- docker-res/jupyterhub_config.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/docker-res/jupyterhub_config.py b/docker-res/jupyterhub_config.py index f0dcd8c..330a525 100644 --- a/docker-res/jupyterhub_config.py +++ b/docker-res/jupyterhub_config.py @@ -76,6 +76,9 @@ c.JupyterHub.spawner_class = 'mlhubspawner.MLHubKubernetesSpawner' c.KubeSpawner.pod_name_template = c.Spawner.name_template + from z2jh import set_config_if_not_none + set_config_if_not_none(c.KubeSpawner, 'workspace_images', 'singleuser.workspaceImages') + if not isinstance(c.KubeSpawner.environment, dict): c.KubeSpawner.environment = {} c.KubeSpawner.environment.update(default_env)