[bitnami/grafana] Allow template rendering in ingress hostname (#13371)

* [bitnami/grafana] Allow template rendering in ingress hostname

During a migration from [bitnami/grafana-operator] I noticed the ingress hostname can't be templated

Signed-off-by: Yarden Shoham <hrsi88@gmail.com>

* Fix whitespace from merge conflict

Signed-off-by: Yarden Shoham <hrsi88@gmail.com>

* Patch version

Signed-off-by: Yarden Shoham <hrsi88@gmail.com>

Signed-off-by: Yarden Shoham <hrsi88@gmail.com>
This commit is contained in:
Yarden Shoham
2022-11-10 11:26:42 +02:00
committed by GitHub
parent 57208b1e10
commit 85462af126
2 changed files with 2 additions and 2 deletions

View File

@@ -24,4 +24,4 @@ name: grafana
sources:
- https://github.com/bitnami/containers/tree/main/bitnami/grafana
- https://grafana.com/
version: 8.2.16
version: 8.2.17

View File

@@ -36,7 +36,7 @@ spec:
{{- end }}
backend: {{- include "common.ingress.backend" (dict "serviceName" (include "common.names.fullname" .) "servicePort" "http" "context" $) | nindent 14 }}
{{- if ne .Values.ingress.hostname "*" }}
host: {{ .Values.ingress.hostname }}
host: {{ include "common.tplvalues.render" (dict "value" .Values.ingress.hostname "context" $) }}
{{- end }}
{{- end }}
{{- range .Values.ingress.extraHosts }}