Skip to content

Commit

Permalink
Retain old behaviour to only restart on relevant config changes
Browse files Browse the repository at this point in the history
  • Loading branch information
consideRatio committed Dec 11, 2020
1 parent ba4f7a1 commit dc3df7f
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions helm-chart/binderhub/templates/secret.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
{{- /*
Note that changes to the rendered version of this
file will trigger a restart of the BinderHub pod
through a annotation containing a hash of this
file rendered.
*/ -}}
kind: Secret
apiVersion: v1
metadata:
Expand All @@ -7,9 +13,13 @@ stringData:
{{- /* Make it easy to mount certain parts without traversing YAML */}}
binder.hub-token: {{ .Values.jupyterhub.hub.services.binder.apiToken | quote }}

{{- /* Stash away all Helm template values */}}
{{- /*
Stash away relevant Helm template values for
the BinderHub Python application to read from
in binderhub_config.py.
*/}}
values.yaml: |
{{- .Values | toYaml | nindent 4 }}
{{- pick .Values "config" "cors" "dind" "extraConfig" | toYaml | nindent 4 }}
{{- /* Glob files to allow them to be mounted by the binderhub pod */}}
{{- /* key=filename: value=content */}}
Expand Down

0 comments on commit dc3df7f

Please sign in to comment.