Skip to content

Commit 6d9603f

Browse files
committed
minor updates to the ziti-router service template
1 parent 090ac17 commit 6d9603f

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

charts/ziti-router/templates/service.yaml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -188,6 +188,7 @@ spec:
188188
{{- if and .Values.tunnel.mode (eq .Values.tunnel.mode "proxy" ) (gt (len .Values.tunnel.proxyAdditionalK8sServices) 0) }}
189189
{{- $root := . }}
190190
{{- range .Values.tunnel.proxyAdditionalK8sServices }}
191+
---
191192
apiVersion: v1
192193
kind: Service
193194
metadata:
@@ -237,9 +238,9 @@ spec:
237238
ports:
238239
{{- $service_name := .name }}
239240
{{- range $root.Values.tunnel.proxyServices }}
240-
{{- if and .k8sService (eq .k8sService $service_name) }}
241-
- port: {{ .advertisedrPort }}
242-
targetPort: {{ .containerPortPort }}
241+
{{- if and .zitiService (eq .zitiService $service_name) }}
242+
- port: {{ .advertisedPort }}
243+
targetPort: {{ .containerPort }}
243244
protocol: {{ .serviceProtocol | default "TCP" }}
244245
name: {{ regexReplaceAll "\\W+" .zitiService "-" }}
245246
{{- if eq $type "NodePort" }}

0 commit comments

Comments
 (0)