Make BinderSpawner a real class
See original GitHub issueAs discovered in https://github.com/jupyterhub/binderhub/pull/1010 BinderSpawner
is defined in-line in three different places:
- https://github.com/jupyterhub/binderhub/blob/9756642c9b2789695af3edf2ba6802765dbf9531/helm-chart/binderhub/values.yaml#L79
- https://github.com/jupyterhub/binderhub/blob/9756642c9b2789695af3edf2ba6802765dbf9531/testing/minikube/jupyterhub-helm-config.yaml#L23
- https://github.com/jupyterhub/binderhub/blob/9756642c9b2789695af3edf2ba6802765dbf9531/doc/authentication.rst#enabling-authentication
We could reduce duplication in this repo by making it a class, e.g. in binder/spawner.py
. As part of this a parameter enable_auth: bool
could be added so it’s easier to configure
Issue Analytics
- State:
- Created 4 years ago
- Reactions:3
- Comments:8 (7 by maintainers)
Top Results From Across the Web
BinderHub with private GitLab and user scopes
The idea is to be able to prevent users to build and launch a Binder for a repo they don't have access to...
Read more >app — BinderHub documentation - Read the Docs
The class used to build repo2docker images. Must inherit from binderhub.build.BuildExecutor. build_cleanup_interval c.BinderHub.build_cleanup_interval = ...
Read more >jupyterhub/binder
Does anyone know how to make my binder link directly open my Jupyter notebook in appmode? The link works fine and takes the...
Read more >https://raw.githubusercontent.com/jupyterhub/mybin...
cryptnono: enabled: true tolerations: # deploy anti-cryptomining cryptnono ... kubernetes.io/ingress.class: nginx kubernetes.io/tls-acme: "true" # make sure ...
Read more >Technical draft for dynamic image building
... NullAuthenticator and the Spawner to BinderSpawner derived from KubeSpawner, ... (link) Build is a class to create a monitored (status, ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
One thing to consider: this code gets changed (very) rarely. To me this means two things:
Maybe we can solve some of the tediousness of the duplication with a comment that points to the duplicated places. We could also put a note in the copy in the docs saying “this is just an example, take these parts we have here and apply them to your version of the spawner/default spawner”.
I’d vote against a process that involves a new package or having to release one of the existing packages/charts (like z2jh). I am not against building our own hub image but I am not at all excited about it. Wary of the tasks that it would introduce like keeping it compatible with the z2jh chart version we use. This seems like a task that would occur frequently compared to the task of copying stuff around when we do change
BinderSpawner
.Hmmmm, @bitnik an array would be replaced, a dictionary would be merged I think. Hmm… I figure you need to use
hub.extraVolumes
andhub.extraVolumeMounts
directly and potentially conflict with binderhub users that override it.=) I see that our Jupyter friend has already found this exact issue before, see: https://github.com/helm/helm/issues/3767