🩹(helm) fix Helm ingress rendering when passing multiple hosts

Passing a list of hosts in the ingress was broken: the template
helpers were called with the current loop context (`.`) instead of
the root context (`$`), so the service name was rendered incorrectly
inside the hosts loop.
This commit is contained in:
lebaudantoine
2026-07-02 22:49:22 +02:00
committed by aleb_the_flash
parent 636c2168be
commit edab18d94a
3 changed files with 5 additions and 4 deletions
+1
View File
@@ -28,6 +28,7 @@ and this project adheres to
### Fixed ### Fixed
- 🛂(backend) reject user access tokens on the API - 🛂(backend) reject user access tokens on the API
- 🩹(helm) fix Helm ingress rendering when passing multiple hosts
## [1.21.0] - 2026-06-15 ## [1.21.0] - 2026-06-15
+2 -2
View File
@@ -72,11 +72,11 @@ spec:
backend: backend:
{{- if semverCompare ">=1.19-0" $.Capabilities.KubeVersion.GitVersion }} {{- if semverCompare ">=1.19-0" $.Capabilities.KubeVersion.GitVersion }}
service: service:
name: {{ include "meet.posthog.fullname" . }}-proxy name: {{ include "meet.posthog.fullname" $ }}-proxy
port: port:
number: {{ $.Values.posthog.service.port }} number: {{ $.Values.posthog.service.port }}
{{- else }} {{- else }}
serviceName: {{ include "meet.posthog.fullname" . }}-proxy serviceName: {{ include "meet.posthog.fullname" $ }}-proxy
servicePort: {{ $.Values.posthog.service.port }} servicePort: {{ $.Values.posthog.service.port }}
{{- end }} {{- end }}
{{- with $.Values.posthog.assetsService.customBackends }} {{- with $.Values.posthog.assetsService.customBackends }}
@@ -72,11 +72,11 @@ spec:
backend: backend:
{{- if semverCompare ">=1.19-0" $.Capabilities.KubeVersion.GitVersion }} {{- if semverCompare ">=1.19-0" $.Capabilities.KubeVersion.GitVersion }}
service: service:
name: {{ include "meet.posthog.fullname" . }}-assets-proxy name: {{ include "meet.posthog.fullname" $ }}-assets-proxy
port: port:
number: {{ $.Values.posthog.assetsService.service.port }} number: {{ $.Values.posthog.assetsService.service.port }}
{{- else }} {{- else }}
serviceName: {{ include "meet.posthog.fullname" . }}-assets-proxy serviceName: {{ include "meet.posthog.fullname" $ }}-assets-proxy
servicePort: {{ $.Values.posthog.assetsService.service.port }} servicePort: {{ $.Values.posthog.assetsService.service.port }}
{{- end }} {{- end }}
{{- with $.Values.posthog.assetsService.customBackends }} {{- with $.Values.posthog.assetsService.customBackends }}