Skip to content

Commit e1ea044

Browse files
committed
upd
1 parent 512af92 commit e1ea044

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

ops/Helm/shortlink-template/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ apiVersion: v2
22
appVersion: "1.0.0"
33
name: shortlink-template
44
description: ShortLink templates
5-
version: 0.12.0
5+
version: 0.12.1
66
kubeVersion: ">= 1.30.0 || >= v1.30.0-0"
77
keywords:
88
- shortlink

ops/Helm/shortlink-template/templates/gateway/_http_route.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,11 @@ Docs: https://rollouts-plugin-trafficrouter-gatewayapi.readthedocs.io/
1515
{{- if .Values.httpRoute.enabled -}}
1616

1717
{{- $backendPort := 80 -}}
18+
{{- $portFound := false -}}
1819
{{- range .Values.service.ports -}}
19-
{{- if and .public (eq $backendPort 80) -}}
20+
{{- if and .public (not $portFound) -}}
2021
{{- $backendPort = .port -}}
22+
{{- $portFound = true -}}
2123
{{- end -}}
2224
{{- end -}}
2325

0 commit comments

Comments
 (0)