Skip to content

Commit

Permalink
Merge pull request #2318 from consideRatio/pr/leap-maintenance
Browse files Browse the repository at this point in the history
leap: maintenance notice (basehub: fix override of template_vars)
  • Loading branch information
consideRatio authored Mar 8, 2023
2 parents a833016 + 8a07456 commit 26691bf
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 4 deletions.
18 changes: 18 additions & 0 deletions config/clusters/leap/common.values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,24 @@ basehub:
- jbusecke
JupyterHub:
authenticator_class: github
# Announcement is a JupyterHub feature to present messages to users in
# pages under the /hub path, but not via the /user.
#
# This specific maintenance announcement was requested via
# https://2i2c.freshdesk.com/a/tickets/525.
#
# ref: https://github.com/2i2c-org/infrastructure/issues/1501
# ref: https://jupyterhub.readthedocs.io/en/stable/reference/templates.html#announcement-configuration-variables
#
template_vars:
announcement: >-
<strong>
Service maintenance is scheduled Sunday March 12, to Monday 8AM
EST.
</strong>
<br/>
Running servers may be forcefully stopped and service disruption
is expected.
GitHubOAuthenticator:
populate_teams_in_auth_state: true
allowed_organizations:
Expand Down
7 changes: 3 additions & 4 deletions helm-charts/basehub/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -460,11 +460,10 @@ jupyterhub:
extraConfig:
01-custom-theme: |
from z2jh import get_config
c.JupyterHub.template_paths = ['/usr/local/share/jupyterhub/custom_templates/']
c.JupyterHub.template_vars = {
c.JupyterHub.template_paths.insert(0,'/usr/local/share/jupyterhub/custom_templates')
c.JupyterHub.template_vars.update({
'custom': get_config('custom.homepage.templateVars')
}
})
02-custom-admin: |
from z2jh import get_config
from kubespawner import KubeSpawner
Expand Down

0 comments on commit 26691bf

Please sign in to comment.