You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
#528 touches on this but the issue is more general than described there.
Bug description
Some of the *_template options are expanded in KubeSpawner.__init__() and never again. Overriding them in profile_list profiles therefore doesn't work - you can override the template, but since the template has already been expanded, overriding doesn't produce the desired effect.
See e.g. pvc_name, which is set in init and then used in get_pod_manifest() as-is. Instead, I think pvc_name_template should be expanded in get_pod_manifest().
Expected behaviour
Expansion of templates should be deferred wherever possible so that their overridden values can be respected.
Actual behaviour
Some templates are expanded during init and never again, so overriding them has no effect.
Thank you for opening your first issue in this project! Engagement like this is essential for open source projects! 🤗
If you haven't done so already, check out Jupyter's Code of Conduct. Also, please try to follow the issue template as it helps other other community members to contribute more effectively.
You can meet the other Jovyans by joining our Discourse forum. There is also an intro thread there where you can stop by and say Hi! 👋
#528 touches on this but the issue is more general than described there.
Bug description
Some of the
*_template
options are expanded inKubeSpawner.__init__()
and never again. Overriding them in profile_list profiles therefore doesn't work - you can override the template, but since the template has already been expanded, overriding doesn't produce the desired effect.See e.g. pvc_name, which is set in init and then used in get_pod_manifest() as-is. Instead, I think pvc_name_template should be expanded in get_pod_manifest().
Expected behaviour
Expansion of templates should be deferred wherever possible so that their overridden values can be respected.
Actual behaviour
Some templates are expanded during init and never again, so overriding them has no effect.
How to reproduce
Deploy z2jh with
And try to launch your server. It will fail, because the volume definitions are expanded after overrides are applied, but the PVC name is not.
The text was updated successfully, but these errors were encountered: