From 33f78dcfa22994924a1474c4142a038275802315 Mon Sep 17 00:00:00 2001 From: ericsyh Date: Tue, 26 Nov 2024 16:20:58 +0800 Subject: [PATCH] fix: console kop service port issue Signed-off-by: ericsyh --- .../streamnative-console-statefulset.yaml | 6 +++++- .../streamnative-console-statefulset.yaml | 6 +++++- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/charts/sn-platform-slim/templates/streamnative-console/streamnative-console-statefulset.yaml b/charts/sn-platform-slim/templates/streamnative-console/streamnative-console-statefulset.yaml index 610b6815a..345ff2172 100644 --- a/charts/sn-platform-slim/templates/streamnative-console/streamnative-console-statefulset.yaml +++ b/charts/sn-platform-slim/templates/streamnative-console/streamnative-console-statefulset.yaml @@ -119,7 +119,11 @@ spec: - name: WEB_SERVICE_URL value: {{ template "pulsar.web.internal.service.url" . }} - name: KOP_SERVICE_URL - value: {{ .Values.broker.advertisedDomain }}:9093 + {{- if and .Values.broker.kop.enabled .Values.broker.kop.tls.enabled }} + value: "{{ .Values.broker.advertisedDomain }}:{{ .Values.broker.kop.ports.ssl }}" + {{- else }} + value: "{{ .Values.broker.advertisedDomain }}:{{ .Values.broker.kop.ports.plaintext }}" + {{- end }} {{- if .Values.streamnative_console.login.sso.google.enabled }} - name: GOOGLE_OAUTH2_ENABLED value: "true" diff --git a/charts/sn-platform/templates/streamnative-console/streamnative-console-statefulset.yaml b/charts/sn-platform/templates/streamnative-console/streamnative-console-statefulset.yaml index 8a0fdb33d..7aa68cf80 100644 --- a/charts/sn-platform/templates/streamnative-console/streamnative-console-statefulset.yaml +++ b/charts/sn-platform/templates/streamnative-console/streamnative-console-statefulset.yaml @@ -121,7 +121,11 @@ spec: - name: WEB_SERVICE_URL value: {{ template "pulsar.web.internal.service.url" . }} - name: KOP_SERVICE_URL - value: {{ .Values.broker.advertisedDomain }}:9093 + {{- if and .Values.broker.kop.enabled .Values.broker.kop.tls.enabled }} + value: "{{ .Values.broker.advertisedDomain }}:{{ .Values.broker.kop.ports.ssl }}" + {{- else }} + value: "{{ .Values.broker.advertisedDomain }}:{{ .Values.broker.kop.ports.plaintext }}" + {{- end }} {{- if .Values.streamnative_console.login.sso.google.enabled }} - name: GOOGLE_OAUTH2_ENABLED value: "true"