Skip to content

Commit

Permalink
adjusted to {{\* *\}} syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
consideRatio committed Apr 1, 2018
1 parent 86e868c commit 9311811
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions jupyterhub/templates/hub/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -133,11 +133,11 @@ spec:
key: proxy.token
{{ if .Values.hub.extraEnv -}}
{{ $extraEnvType := typeOf .Values.hub.extraEnv -}}
# If we have a list, embed that here directly. This allows for complex configuration from configmap, downward API, etc
{{/* If we have a list, embed that here directly. This allows for complex configuration from configmap, downward API, etc. */}}
{{ if eq $extraEnvType "[]interface {}" -}}
{{ toYaml .Values.hub.extraEnv | indent 8 }}
{{ else if eq $extraEnvType "map[string]interface {}" -}}
# If we have a map, treat those as key-value pairs
{{/* If we have a map, treat those as key-value pairs. */}}
{{ range $key, $value := .Values.hub.extraEnv }}
- name: {{ $key | quote }}
value: {{ $value | quote }}
Expand Down

0 comments on commit 9311811

Please sign in to comment.