Skip to content

Commit

Permalink
Add config custom
Browse files Browse the repository at this point in the history
This mimics z2jh, and is [documented there](https://z2jh.jupyter.org/en/stable/resources/reference.html#custom):

>Additional values to pass to the Hub. JupyterHub will not itself look at these, but you can read values in your own custom config via hub.extraConfig. For example:
>
>```yaml
>custom:
>  myHost: "https://example.horse"
>hub:
>  extraConfig:
>    myConfig.py: |
>      c.MyAuthenticator.host = get_config("custom.myHost")
>```
  • Loading branch information
consideRatio committed Jul 12, 2024
1 parent a3c5620 commit f6aec6f
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 0 deletions.
4 changes: 4 additions & 0 deletions binderhub-service/values.schema.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ additionalProperties: false
required:
# General configuration
- global
- custom
# Resources for the BinderHub created build pods
- buildPodsRegistryCredentials
# Deployment resource
Expand Down Expand Up @@ -46,6 +47,9 @@ properties:
global:
type: object
additionalProperties: true
custom:
type: object
additionalProperties: true

# Resources for the BinderHub created build pods
# ---------------------------------------------------------------------------
Expand Down
1 change: 1 addition & 0 deletions binderhub-service/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
nameOverride: ""
fullnameOverride: ""
global: {}
custom: {}

# Resources for the BinderHub created build pods
# -----------------------------------------------------------------------------
Expand Down
1 change: 1 addition & 0 deletions tools/templates/lint-and-validate-values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
nameOverride: ""
fullnameOverride: ""
global: {}
custom: {}

# Resources for the BinderHub created build pods
# -----------------------------------------------------------------------------
Expand Down

0 comments on commit f6aec6f

Please sign in to comment.