Skip to content

Commit

Permalink
Merge pull request #5083 from yuvipanda/roll-out-fancy
Browse files Browse the repository at this point in the history
Roll out jupyterhub-fancy-profiles to all hubs
  • Loading branch information
yuvipanda authored Nov 14, 2024
2 parents 2ad7367 + 34c38a4 commit b694094
Show file tree
Hide file tree
Showing 11 changed files with 16 additions and 59 deletions.
10 changes: 1 addition & 9 deletions config/clusters/2i2c/imagebuilding-demo.values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ jupyterhub:
custom_html: <a href="https://www.dfg.de/">DFG</a>, <a href="https://www.cessda.eu/">CESSDA</a>, <a href="https://www.gesis.org/">GESIS</a>, FKZ/Project number <a href="https://gepris.dfg.de/gepris/projekt/460234259?language=en">460234259</a>
singleuser:
profileList:
- display_name: "Only Profile Available, this info is not shown in the UI"
- display_name: Choose your environment and resources
slug: only-choice
profile_options:
image:
Expand Down Expand Up @@ -115,9 +115,6 @@ jupyterhub:
hub:
# Allows for multiple concurrent demos
allowNamedServers: true
image:
name: quay.io/2i2c/dynamic-image-building-experiment
tag: "0.0.1-0.dev.git.10263.hc87b65cf"
config:
JupyterHub:
authenticator_class: github
Expand All @@ -131,11 +128,6 @@ jupyterhub:
scope:
- read:org

extraConfig:
enable-fancy-profiles: |
from jupyterhub_fancy_profiles import setup_ui
setup_ui(c)
binderhub-service:
enabled: true
config:
Expand Down
9 changes: 1 addition & 8 deletions config/clusters/nasa-ghg/staging.values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,21 +13,14 @@ basehub:
gitRepoBranch: "staging"
gitRepoUrl: "https://github.com/US-GHG-Center/ghgc-hub-homepage"
hub:
image:
name: quay.io/2i2c/dynamic-image-building-experiment
tag: "0.0.1-0.dev.git.10263.hc87b65cf"
config:
GitHubOAuthenticator:
oauth_callback_url: https://staging.ghg.2i2c.cloud/hub/oauth_callback
extraConfig:
enable-fancy-profiles: |
from jupyterhub_fancy_profiles import setup_ui
setup_ui(c)
singleuser:
nodeSelector:
2i2c/hub-name: staging
profileList:
- display_name: "Only Profile Available, this info is not shown in the UI"
- display_name: Choose your environment and resources
slug: only-choice
profile_options:
image:
Expand Down
7 changes: 0 additions & 7 deletions config/clusters/nasa-veda/common.values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,6 @@ basehub:
name: "NASA"
url: https://www.earthdata.nasa.gov/esds
hub:
image:
name: quay.io/2i2c/dynamic-image-building-experiment
tag: 0.0.1-0.dev.git.10730.h0ce7d704
allowNamedServers: true
config:
JupyterHub:
Expand Down Expand Up @@ -74,10 +71,6 @@ basehub:
- slesaad
- wildintellect
- amarouane-ABDELHAK
extraConfig:
enable-fancy-profiles: |
from jupyterhub_fancy_profiles import setup_ui
setup_ui(c)
singleuser:
cloudMetadata:
blockWithIptables: false
Expand Down
10 changes: 1 addition & 9 deletions config/clusters/opensci/sciencecore.values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ jupyterhub:
SCRATCH_BUCKET: s3://opensci-scratch-sciencecore/$(JUPYTERHUB_USER)
PERSISTENT_BUCKET: s3://opensci-persistent-sciencecore/$(JUPYTERHUB_USER)
profileList:
- display_name: "Only Profile Available, this info is not shown in the UI"
- display_name: Choose your environment and resources
slug: only-choice
profile_options:
image:
Expand Down Expand Up @@ -149,9 +149,6 @@ jupyterhub:

hub:
allowNamedServers: true
image:
name: quay.io/2i2c/dynamic-image-building-experiment
tag: "0.0.1-0.dev.git.10263.hc87b65cf"
config:
JupyterHub:
authenticator_class: github
Expand All @@ -166,11 +163,6 @@ jupyterhub:
admin_users:
- kyttmacmanus # Kytt MacManus, added as part of https://2i2c.freshdesk.com/a/tickets/1454

extraConfig:
enable-fancy-profiles: |
from jupyterhub_fancy_profiles import setup_ui
setup_ui(c)
binderhub-service:
enabled: true
config:
Expand Down
5 changes: 1 addition & 4 deletions config/clusters/opensci/staging.values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ jupyterhub:
url: ""
singleuser:
profileList:
- display_name: "Only Profile Available, this info is not shown in the UI"
- display_name: Choose your environment and resources
slug: only-choice
profile_options:
image:
Expand Down Expand Up @@ -111,9 +111,6 @@ jupyterhub:

hub:
allowNamedServers: true
image:
name: quay.io/2i2c/dynamic-image-building-experiment
tag: "0.0.1-0.dev.git.8663.h049aa2c2"
config:
JupyterHub:
authenticator_class: github
Expand Down
9 changes: 1 addition & 8 deletions config/clusters/projectpythia/common.values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -41,20 +41,13 @@ jupyterhub:

hub:
allowNamedServers: true
image:
name: quay.io/2i2c/dynamic-image-building-experiment
tag: "0.0.1-0.dev.git.8663.h049aa2c2"
config:
JupyterHub:
authenticator_class: github
Authenticator:
admin_users:
- jmunroe
- ktyle
extraConfig:
enable-fancy-profiles: |
from jupyterhub_fancy_profiles import setup_ui
setup_ui(c)

scheduling:
userScheduler:
Expand All @@ -66,7 +59,7 @@ jupyterhub:
GH_SCOPED_CREDS_CLIENT_ID: "Iv23liaEC5WLtjKehTtK"
GH_SCOPED_CREDS_APP_URL: "https://github.com/apps/2i2c-project-pythia-push-access"
profileList:
- display_name: "Only Profile Available, this info is not shown in the UI"
- display_name: Choose your environment and resources
slug: only-choice
profile_options:
image:
Expand Down
12 changes: 1 addition & 11 deletions config/clusters/strudel/common.values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -38,22 +38,12 @@ jupyterhub:
config:
JupyterHub:
authenticator_class: github
# Authenticator:
# admin_users:
# - user1
image:
name: quay.io/2i2c/dynamic-image-building-experiment
tag: "0.0.1-0.dev.git.8663.h049aa2c2"
extraConfig:
enable-fancy-profiles: |
from jupyterhub_fancy_profiles import setup_ui
setup_ui(c)
scheduling:
userScheduler:
enabled: true
singleuser:
profileList:
- display_name: "Only Profile Available, this info is not shown in the UI"
- display_name: Choose your environment and resources
slug: only-choice
profile_options:
image:
Expand Down
2 changes: 1 addition & 1 deletion docs/howto/features/imagebuilding.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ jupyterhub:
jupyterhub:
singleuser:
profileList:
- display_name: "Only Profile Available, this info is not shown in the UI"
- display_name: Choose your environment and resources
slug: only-choice
profile_options:
image:
Expand Down
2 changes: 1 addition & 1 deletion helm-charts/basehub/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ dependencies:
version: 3.3.7
repository: https://jupyterhub.github.io/helm-chart/
- name: binderhub-service
version: 0.1.0-0.dev.git.276.h00ba998
version: 0.1.0-0.dev.git.282.he1ac64b
repository: https://2i2c.org/binderhub-service/
condition: binderhub-service.enabled
# If bumping the version of dask-gateway, please also bump the default version set
Expand Down
6 changes: 5 additions & 1 deletion helm-charts/basehub/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1060,7 +1060,7 @@ jupyterhub:
oauth_no_confirm: true
image:
name: quay.io/2i2c/pilot-hub
tag: "0.0.1-0.dev.git.8663.h049aa2c2"
tag: "0.0.1-0.dev.git.10858.hac4e7a41"
networkPolicy:
enabled: true
# interNamespaceAccessLabels=accept makes the hub pod's associated
Expand Down Expand Up @@ -1592,6 +1592,10 @@ jupyterhub:
# https://jupyterhub.readthedocs.io/en/stable/reference/api/auth.html#jupyterhub.auth.Authenticator.post_auth_hook
c.Authenticator.post_auth_hook = salt_username
07-enable-fancy-profiles: |
from jupyterhub_fancy_profiles import setup_ui
setup_ui(c)
# Initially copied from https://github.com/dask/helm-chart/blob/main/daskhub/values.yaml
daskhub-01-add-dask-gateway-values: |
# 1. Sets `DASK_GATEWAY__PROXY_ADDRESS` in the singleuser environment.
Expand Down
3 changes: 3 additions & 0 deletions helm-charts/images/hub/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,6 @@
# ref: https://github.com/yuvipanda/jupyterhub-configurator/commits/backported-jh41-compatibility
#
git+https://github.com/yuvipanda/jupyterhub-configurator@backported-jh41-compatibility

# Brings in https://github.com/yuvipanda/jupyterhub-fancy-profiles
jupyterhub-fancy-profiles==0.3.9

0 comments on commit b694094

Please sign in to comment.