Skip to content

Commit

Permalink
BinderHub chart fixes (#12)
Browse files Browse the repository at this point in the history
* Bump upstream BinderHub chart to latest

* Fix missing imports

* Switch to podman-in-k8s image builder

---------

Co-authored-by: sd109 <[email protected]>
  • Loading branch information
sd109 and sd109 authored Dec 7, 2023
1 parent d2aef8f commit 9c58d7a
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 7 deletions.
5 changes: 3 additions & 2 deletions binderhub-azimuth/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,11 @@ appVersion: 0.2.0
icon: https://raw.githubusercontent.com/jupyterhub/binderhub/main/binderhub/static/logo.svg
keywords: [jupyter, binderhub]

# List of latest BinderHub chart release tags can be found here:
# https://hub.jupyter.org/helm-chart/#development-releases-binderhub
dependencies:
- name: binderhub
# version: 1.0.0-0.dev.git.3170.h84b1db9
version: 1.0.0-0.dev.git.3171.h88669a1
version: 1.0.0-0.dev.git.3350.he7995d6
repository: https://jupyterhub.github.io/helm-chart/

annotations:
Expand Down
11 changes: 11 additions & 0 deletions binderhub-azimuth/templates/binderhub-registry-config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
---
apiVersion: v1
kind: ConfigMap
metadata:
# Note: Name must match .Values.binderhub.binder.extraVolumes entry
name: binderhub-registry-config
data:
001-binderhub.conf: |
[[registry]]
location = "{{ .Values.registry.serviceName }}:80"
insecure = true
17 changes: 12 additions & 5 deletions binderhub-azimuth/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -290,12 +290,18 @@ binderhub:
extraEnv:
JUPYTERHUB_SINGLEUSER_APP: "jupyter_server.serverapp.ServerApp"

imageBuilderType: dind
dind:
imageBuilderType: pink
pink:
daemonset:
extraArgs:
- "--insecure-registry"
- "binderhub-registry:80"
extraVolumes:
- name: binderhub-registry-config
configMap:
# NOTE: This should match the name of the config map in templates/binderhub-registry-config.yml
name: binderhub-registry-config
extraVolumeMounts:
- name: binderhub-registry-config
mountPath: /etc/containers/registries.conf.d/001-binderhub.conf
subPath: 001-binderhub.conf

# Don't use a Loadbalancer for binderhub since service will sit behind Zenith
service:
Expand Down Expand Up @@ -334,6 +340,7 @@ binderhub:
# already exists in the underlying JupyterHub chart but not in the BinderHub chart. The following code snippet is adapted from:
# https://github.com/jupyterhub/zero-to-jupyterhub-k8s/blob/e1e1b49fba13c1e1c0ee454baf5998e8bc2ec725/jupyterhub/files/hub/jupyterhub_config.py#L483C1-L492
read-config-volumes.py: |
import os, glob
config_dir = "/etc/binderhub/config/extra_config.d"
if os.path.isdir(config_dir):
for file_path in sorted(glob.glob(f"{config_dir}/*.py")):
Expand Down

0 comments on commit 9c58d7a

Please sign in to comment.