Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 5 additions & 4 deletions charts/ziti-router/templates/service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -188,6 +188,7 @@ spec:
{{- if and .Values.tunnel.mode (eq .Values.tunnel.mode "proxy" ) (gt (len .Values.tunnel.proxyAdditionalK8sServices) 0) }}
{{- $root := . }}
{{- range .Values.tunnel.proxyAdditionalK8sServices }}
---
apiVersion: v1
kind: Service
metadata:
Expand Down Expand Up @@ -235,11 +236,11 @@ spec:
publishNotReadyAddresses: {{ . }}
{{- end }}
ports:
{{- $service_name := .name }}
{{- $ziti_service := .zitiService }}
{{- range $root.Values.tunnel.proxyServices }}
{{- if and .k8sService (eq .k8sService $service_name) }}
- port: {{ .advertisedrPort }}
targetPort: {{ .containerPortPort }}
{{- if and .zitiService (eq .zitiService $ziti_service) }}
- port: {{ .advertisedPort }}
targetPort: {{ .containerPort }}
protocol: {{ .serviceProtocol | default "TCP" }}
name: {{ regexReplaceAll "\\W+" .zitiService "-" }}
{{- if eq $type "NodePort" }}
Expand Down