Skip to content

Commit

Permalink
Set claim template properly
Browse files Browse the repository at this point in the history
This prevented dynamic provisioning from working at all.

Fixed #35
  • Loading branch information
yuvipanda committed Jun 21, 2017
1 parent 7c3d9be commit 1f4ae1a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion images/hub/jupyterhub_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ def get_config(key, default=None):
# Configure dynamically provisioning pvc
storage_type = get_config('singleuser.storage.type')
if storage_type == 'dynamic':
c.KubeSpawner.pvc_name_template = 'claim-{username}-{userid}'
c.KubeSpawner.pvc_name_template = 'claim-{username}'
c.KubeSpawner.user_storage_pvc_ensure = True
c.KubeSpawner.user_storage_class = get_config('singleuser.storage.class')
c.KubeSpawner.user_storage_access_modes = ['ReadWriteOnce']
Expand Down

0 comments on commit 1f4ae1a

Please sign in to comment.