-
Notifications
You must be signed in to change notification settings - Fork 60
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Use profileSpawner with configuration provided by z2jh #58
Comments
Thank you for opening your first issue in this project! Engagement like this is essential for open source projects! 🤗 |
I've never learned how ProfileSpawner works, but I see that you configure it to recognize it wraps KubeSpawner, and I assume you have the I'm unable to allocate time to dig into the details about this, but here are some relevant debugging notes:
|
Thank you very much for your feedback! I noticed, I was not using the latest version of I will now try to fix this issue with the help of your debugging notes 👍 and post any progress here. |
All right, so after some research, I was finally able to identify all variables that were overridden by c.ProfilesSpawner.profiles = [
('Kube', 'kubespawner', 'kubespawner.KubeSpawner', {
'ip':'0.0.0.0', 'port': 0, 'cmd': None, 'path': None, 'environment': {}, 'env_keep': []}),
# Other spawner here
] Without these variables overridden manually, the spawner is not able to launch any pod and connect to it. |
Bug description
Hi, I would like to use this
ProfilesSpawner
with https://github.com/jupyterhub/zero-to-jupyterhub-k8s. z2jh comes with an handy configuration to spawn pods in Kubernetes.Is there a way to forward the configuration to a profile of this spawner ?
How to reproduce
My idea was to forward the config of KubeSpawner directly to the ProfilesSpawner however I get an error. Here is some of the config that I tried and would love to work.
And here is the error :
I am not very familiar with traitlets and how they work. I guess that I am missing something there.
From what I understood, some default configurations are not loaded this way.
Any help would be welcome, it could be great to be able to combine easily z2jh and this project.
\cc @consideRatio
Expected behaviour
I would expect to pass a valid configuration.
Actual behaviour
It currently fails.
The text was updated successfully, but these errors were encountered: