Skip to content

Commit

Permalink
MISC fix usage of tpl missing from some helm containers
Browse files Browse the repository at this point in the history
  • Loading branch information
andytson-inviqa committed Dec 5, 2019
1 parent 66335dd commit e415bb2
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 0 deletions.
10 changes: 10 additions & 0 deletions helm/app/templates/application/app-init.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,23 @@ spec:
containers:
- env:
{{- range $key, $value := index .Values.docker.services "php-base" "environment" }}
{{- $tp := typeOf $value }}
- name: {{ $key | quote }}
{{- if eq $tp "string" }}
value: {{ tpl $value $ | quote }}
{{- else }}
value: {{ $value | quote }}
{{- end }}
{{- end }}
{{- range $key, $value := .Values.docker.services.console.environment }}
{{- $tp := typeOf $value }}
- name: {{ $key | quote }}
{{- if eq $tp "string" }}
value: {{ tpl $value $ | quote }}
{{- else }}
value: {{ $value | quote }}
{{- end }}
{{- end }}
{{- range $key, $value := .Values.environment }}
- name: {{ $key | quote }}
value: {{ $value | quote }}
Expand Down
10 changes: 10 additions & 0 deletions helm/app/templates/application/app-migrate.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,23 @@ spec:
containers:
- env:
{{- range $key, $value := index .Values.docker.services "php-base" "environment" }}
{{- $tp := typeOf $value }}
- name: {{ $key | quote }}
{{- if eq $tp "string" }}
value: {{ tpl $value $ | quote }}
{{- else }}
value: {{ $value | quote }}
{{- end }}
{{- end }}
{{- range $key, $value := .Values.docker.services.console.environment }}
{{- $tp := typeOf $value }}
- name: {{ $key | quote }}
{{- if eq $tp "string" }}
value: {{ tpl $value $ | quote }}
{{- else }}
value: {{ $value | quote }}
{{- end }}
{{- end }}
{{- range $key, $value := .Values.environment }}
- name: {{ $key | quote }}
value: {{ $value | quote }}
Expand Down

0 comments on commit e415bb2

Please sign in to comment.