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
4 changed files with 4 additions and 4 deletions

View File

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

View File

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

View File

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

View File

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