Skip to content

Commit

Permalink
fix(helpers) KONG_PORT_MAPS value for tls overrideServiceTarget port
Browse files Browse the repository at this point in the history
  • Loading branch information
mithunkrb committed Jun 16, 2024
1 parent a04a49d commit e4944a7
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions charts/kong/templates/_helpers.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -337,8 +337,12 @@ Parameters: takes a service (e.g. .Values.proxy) as its argument and returns KON
{{- end -}}
{{- if .tls.enabled -}}
{{- if .tls.overrideServiceTargetPort -}}
{{- $portMaps = append $portMaps (printf "%d:%d" (int64 .tls.servicePort) (int64 .tls.overrideServiceTargetPort)) -}}
{{- else -}}
{{- $portMaps = append $portMaps (printf "%d:%d" (int64 .tls.servicePort) (int64 .tls.containerPort)) -}}
{{- end -}}
{{- end -}}
{{- $portMapsString := ($portMaps | join ", ") -}}
{{- $portMapsString -}}
Expand Down

0 comments on commit e4944a7

Please sign in to comment.