Skip to content

Commit

Permalink
Merge pull request #1603 from manics/helmchart-config-defaults
Browse files Browse the repository at this point in the history
Add all `c.BinderHub.*` properties used in chart to Values.yaml
  • Loading branch information
consideRatio authored Dec 29, 2022
2 parents ee4876b + 5b2ceec commit 3afb84c
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ spec:
key: hub.jupyter.org_dedicated
operator: Equal
value: user
nodeSelector: {{ .Values.config.BinderHub.build_node_selector | default dict | toJson }}
nodeSelector: {{ .Values.config.BinderHub.build_node_selector | toJson }}

{{- with $builder.initContainers }}
initContainers:
Expand Down
4 changes: 2 additions & 2 deletions helm-chart/binderhub/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ spec:
{{- if .Values.deployment.readinessProbe.enabled }}
readinessProbe:
httpGet:
path: {{ .Values.config.BinderHub.base_url | default "/" }}versions
path: {{ .Values.config.BinderHub.base_url }}versions
port: binder
initialDelaySeconds: {{ .Values.deployment.readinessProbe.initialDelaySeconds }}
periodSeconds: {{ .Values.deployment.readinessProbe.periodSeconds }}
Expand All @@ -161,7 +161,7 @@ spec:
{{- if .Values.deployment.livenessProbe.enabled }}
livenessProbe:
httpGet:
path: {{ .Values.config.BinderHub.base_url | default "/" }}versions
path: {{ .Values.config.BinderHub.base_url }}versions
port: binder
initialDelaySeconds: {{ .Values.deployment.livenessProbe.initialDelaySeconds }}
periodSeconds: {{ .Values.deployment.livenessProbe.periodSeconds }}
Expand Down
7 changes: 6 additions & 1 deletion helm-chart/binderhub/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,13 @@ service:
loadBalancerIP:

config:
# These c.BinderHub properties are referenced by the Helm chart
BinderHub:
# This must equal the default value of c.BinderHub.use_registry
# auth_enabled:
base_url: /
build_node_selector: {}
# hub_url:
# hub_url_local:
use_registry: true

extraConfig: {}
Expand Down

0 comments on commit 3afb84c

Please sign in to comment.