diff --git a/charts/ziti-router/Chart.yaml b/charts/ziti-router/Chart.yaml index bb4e8b87b..f2edc6a8e 100644 --- a/charts/ziti-router/Chart.yaml +++ b/charts/ziti-router/Chart.yaml @@ -3,4 +3,4 @@ appVersion: 1.4.2 description: Host an OpenZiti router in Kubernetes name: ziti-router type: application -version: 1.2.2 +version: 1.2.3 diff --git a/charts/ziti-router/README.md b/charts/ziti-router/README.md index e6fdb0237..5c92b19a8 100644 --- a/charts/ziti-router/README.md +++ b/charts/ziti-router/README.md @@ -1,7 +1,7 @@ # ziti-router -![Version: 1.2.2](https://img.shields.io/badge/Version-1.2.2-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 1.4.2](https://img.shields.io/badge/AppVersion-1.4.2-informational?style=flat-square) +![Version: 1.2.3](https://img.shields.io/badge/Version-1.2.3-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 1.4.2](https://img.shields.io/badge/AppVersion-1.4.2-informational?style=flat-square) Host an OpenZiti router in Kubernetes diff --git a/charts/ziti-router/templates/service.yaml b/charts/ziti-router/templates/service.yaml index bbed9e651..3bc93a0d0 100644 --- a/charts/ziti-router/templates/service.yaml +++ b/charts/ziti-router/templates/service.yaml @@ -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: @@ -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" }}