From 310828b32dfb825ef392b229e6e3b2c8fd37583e Mon Sep 17 00:00:00 2001 From: martinrw <23168921+martinrw@users.noreply.github.com> Date: Mon, 29 Apr 2024 17:12:33 +0200 Subject: [PATCH 1/3] make target port customisable --- charts/unleash/templates/service.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/charts/unleash/templates/service.yaml b/charts/unleash/templates/service.yaml index 5f6eba2..3eac537 100644 --- a/charts/unleash/templates/service.yaml +++ b/charts/unleash/templates/service.yaml @@ -12,7 +12,7 @@ spec: type: {{ .Values.service.type }} ports: - port: {{ .Values.service.port }} - targetPort: http + targetPort: {{ .Values.service.targetPort | default .Values.service.port }} {{- if and (or (eq .Values.service.type "NodePort") (eq .Values.service.type "LoadBalancer")) (not (empty .Values.service.nodePort)) }} nodePort: {{ .Values.service.nodePort }} {{- end }} From 09a53b324da9a1c5e5aead8ed441994364fd44bf Mon Sep 17 00:00:00 2001 From: martinrw <23168921+martinrw@users.noreply.github.com> Date: Mon, 29 Apr 2024 17:13:05 +0200 Subject: [PATCH 2/3] make target port customisable --- charts/unleash/values.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/charts/unleash/values.yaml b/charts/unleash/values.yaml index 090774f..99e783c 100644 --- a/charts/unleash/values.yaml +++ b/charts/unleash/values.yaml @@ -226,6 +226,8 @@ service: # Supported types: ClusterIP, NodePort, LoadBalancer type: ClusterIP port: 4242 + # target port will be set to port if not set + targetPort: "" # nodePort is optional and only used when service.type is NodePort or LoadBalancer nodePort: "" annotations: {} From 8d0bf6a334971a863ad23314ec97e2300d19b5ec Mon Sep 17 00:00:00 2001 From: martinrw <23168921+martinrw@users.noreply.github.com> Date: Mon, 29 Apr 2024 17:13:39 +0200 Subject: [PATCH 3/3] make target port customisable --- charts/unleash/Chart.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/charts/unleash/Chart.yaml b/charts/unleash/Chart.yaml index bd98663..4df90a7 100644 --- a/charts/unleash/Chart.yaml +++ b/charts/unleash/Chart.yaml @@ -15,4 +15,4 @@ sources: - https://github.com/Unleash/unleash - https://github.com/Unleash/helm-charts type: application -version: 4.0.2 +version: 4.0.3