Skip to content

Commit

Permalink
Migrate config and docs to binderhub-service with fixed naming
Browse files Browse the repository at this point in the history
  • Loading branch information
consideRatio committed Jul 8, 2024
1 parent fce0cd7 commit 5368931
Show file tree
Hide file tree
Showing 13 changed files with 13 additions and 56 deletions.
1 change: 0 additions & 1 deletion config/clusters/2i2c/binderhub-ui-demo.values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,6 @@ jupyterhub:
redirectToServer: false
services:
binder:
oauth_no_confirm: true
oauth_redirect_uri: https://binderhub-ui-demo.2i2c.cloud/oauth_callback
loadRoles:
binder:
Expand Down
6 changes: 0 additions & 6 deletions config/clusters/2i2c/imagebuilding-demo.values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -113,12 +113,6 @@ jupyterhub:
hub:
# Allows for multiple concurrent demos
allowNamedServers: true
services:
binder:
# FIXME: ref https://github.com/2i2c-org/binderhub-service/issues/57
# for something more readable and requiring less copy-pasting
url: http://imagebuilding-demo-binderhub-service:8090
display: false
image:
name: quay.io/2i2c/dynamic-image-building-experiment
tag: "0.0.1-0.dev.git.8663.h049aa2c2"
Expand Down
2 changes: 0 additions & 2 deletions config/clusters/hhmi/binder.values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,6 @@ jupyterhub:
JupyterHub:
authenticator_class: "null"
redirectToServer: false
services:
binder: {}
loadRoles:
binder:
services:
Expand Down
1 change: 0 additions & 1 deletion config/clusters/opensci/big-binder.values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,6 @@ jupyterhub:
redirectToServer: false
services:
binder:
oauth_no_confirm: true
oauth_redirect_uri: https://big.binder.opensci.2i2c.cloud/oauth_callback
loadRoles:
binder:
Expand Down
6 changes: 0 additions & 6 deletions config/clusters/opensci/sciencecore.values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -140,12 +140,6 @@ jupyterhub:

hub:
allowNamedServers: true
services:
binder:
# FIXME: ref https://github.com/2i2c-org/binderhub-service/issues/57
# for something more readable and requiring less copy-pasting
url: http://sciencecore-binderhub-service:8090
display: false
image:
name: quay.io/2i2c/dynamic-image-building-experiment
tag: "0.0.1-0.dev.git.8663.h049aa2c2"
Expand Down
2 changes: 0 additions & 2 deletions config/clusters/opensci/small-binder.values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,6 @@ jupyterhub:
JupyterHub:
authenticator_class: "null"
redirectToServer: false
services:
binder: {}
loadRoles:
binder:
services:
Expand Down
6 changes: 0 additions & 6 deletions config/clusters/projectpythia/prod.values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,3 @@ jupyterhub:
- ProjectPythia
scope:
- read:org
services:
binder:
# FIXME: ref https://github.com/2i2c-org/binderhub-service/issues/57
# for something more readable and requiring less copy-pasting
url: http://prod-binderhub-service:8090
display: false
2 changes: 0 additions & 2 deletions config/clusters/projectpythia/pythia-binder.values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,6 @@ jupyterhub:
# In the common values files this is where fancy profiles gets enabled
extraConfig: {}
redirectToServer: false
services:
binder: {}
loadRoles:
binder:
services:
Expand Down
6 changes: 0 additions & 6 deletions config/clusters/projectpythia/staging.values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,3 @@ jupyterhub:
- ProjectPythia
scope:
- read:org
services:
binder:
# FIXME: ref https://github.com/2i2c-org/binderhub-service/issues/57
# for something more readable and requiring less copy-pasting
url: http://staging-binderhub-service:8090
display: false
2 changes: 0 additions & 2 deletions config/clusters/projectpythia/testing.values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,6 @@ jupyterhub:
profileList: []
hub:
redirectToServer: false
services:
binder: {}
loadRoles:
binder:
services:
Expand Down
6 changes: 2 additions & 4 deletions config/clusters/templates/common/binderhub-ui-hub.values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -95,13 +95,11 @@ jupyterhub:
{% endif %}
{% endif %}
redirectToServer: false
{% if authenticator != "none" %}
services:
binder:
{% if authenticator != "none" %}
oauth_no_confirm: true
oauth_redirect_uri: https://{{ binderhub_domain }}/oauth_callback
{% else %} {}
{% endif %}
{% endif %}
loadRoles:
binder:
services:
Expand Down
16 changes: 1 addition & 15 deletions docs/howto/features/binderhub-ui.md
Original file line number Diff line number Diff line change
Expand Up @@ -187,9 +187,6 @@ jupyterhub:
hub:
services:
binder:
# skip the OAuth confirmation page
oauth_no_confirm: true
# the service will have a public url instead of being contacted via /services/:name
oauth_redirect_uri: https://<binderhub-public-url>/oauth_callback
```

Expand Down Expand Up @@ -272,18 +269,7 @@ jupyterhub:
add_staff_user_ids_to_admin_users: false
```

#### 3. Check the binder hub service

Setup `binder` as a jupyterhub externally managed service.

```yaml
jupyterhub:
hub:
services:
binder: {}
```

#### 4. Check the roles
#### 3. Check the roles
Setup a `binder` and a `user` role and make sure the correct permissions are being assigned to this new service but also to the users so that they can access the service.

```yaml
Expand Down
13 changes: 10 additions & 3 deletions helm-charts/basehub/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1009,10 +1009,17 @@ jupyterhub:
#
admin: true
dask-gateway:
# We provide an entry here for dask-gateway unconditionally, so
# our helm chart will correctly autogenerate a secret with appropriate
# keys. It's not used if dask-gateway is not enabled.
# We provide an entry here for dask-gateway unconditionally, so the
# jupyterhub chart will autogenerate a secret with appropriate keys.
# It's not used if dask-gateway is not enabled.
display: false
binder:
# We provide an entry here for binderhub-service unconditionally, so the
# jupyterhub chart will autogenerate a secret with appropriate keys.
# It's not used if binderhub-service is not enabled.
display: false
url: http://binderhub:8090
oauth_no_confirm: true
image:
name: quay.io/2i2c/pilot-hub
tag: "0.0.1-0.dev.git.8663.h049aa2c2"
Expand Down

0 comments on commit 5368931

Please sign in to comment.