helm: apply templating to Ingress host and environment variable values (#17073)

This commit is contained in:
Dylan Piergies 2023-05-03 07:27:17 +01:00 committed by GitHub
parent d5bce978a8
commit 8203cb9990
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 4 additions and 4 deletions

View File

@ -49,7 +49,7 @@ spec:
servicePort: {{ $servicePort }} servicePort: {{ $servicePort }}
{{- end }} {{- end }}
{{- if . }} {{- if . }}
host: {{ . | quote }} host: {{ tpl . $ | quote }}
{{- end }} {{- end }}
{{- end }} {{- end }}
{{- end }} {{- end }}

View File

@ -154,7 +154,7 @@ spec:
{{- end }} {{- end }}
{{- range $key, $val := .Values.environment }} {{- range $key, $val := .Values.environment }}
- name: {{ $key }} - name: {{ $key }}
value: {{ $val | quote }} value: {{ tpl $val $ | quote }}
{{- end }} {{- end }}
resources: {{- toYaml .Values.resources | nindent 12 }} resources: {{- toYaml .Values.resources | nindent 12 }}
{{- with .Values.extraContainers }} {{- with .Values.extraContainers }}

View File

@ -49,7 +49,7 @@ spec:
servicePort: {{ $servicePort }} servicePort: {{ $servicePort }}
{{- end }} {{- end }}
{{- if . }} {{- if . }}
host: {{ . | quote }} host: {{ tpl . $ | quote }}
{{- end }} {{- end }}
{{- end }} {{- end }}
{{- end }} {{- end }}

View File

@ -172,7 +172,7 @@ spec:
{{- end }} {{- end }}
{{- range $key, $val := .Values.environment }} {{- range $key, $val := .Values.environment }}
- name: {{ $key }} - name: {{ $key }}
value: {{ $val | quote }} value: {{ tpl $val $ | quote }}
{{- end }} {{- end }}
resources: {{- toYaml .Values.resources | nindent 12 }} resources: {{- toYaml .Values.resources | nindent 12 }}
{{- with .Values.extraContainers }} {{- with .Values.extraContainers }}