Skip to content

Commit

Permalink
Allow overriding list of workspace_images via config,yaml in Kubernet…
Browse files Browse the repository at this point in the history
…es mode
  • Loading branch information
raethlein committed Sep 23, 2019
1 parent 86287e5 commit a74990d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions docker-res/jupyterhub_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit a74990d

Please sign in to comment.