From 3924e8fccd3a1602f30c1358c6888654bc84ff59 Mon Sep 17 00:00:00 2001 From: hlts2 Date: Thu, 21 Sep 2023 19:07:39 +0900 Subject: [PATCH] add default setting logic Signed-off-by: hlts2 --- charts/vald/templates/gateway/mirror/configmap.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/charts/vald/templates/gateway/mirror/configmap.yaml b/charts/vald/templates/gateway/mirror/configmap.yaml index b8f776996d..a8641c4f42 100644 --- a/charts/vald/templates/gateway/mirror/configmap.yaml +++ b/charts/vald/templates/gateway/mirror/configmap.yaml @@ -69,7 +69,7 @@ data: {{- include "vald.grpc.client" $GRPCClient | nindent 8 }} self_mirror_addr: {{- if $gateway.ingress.enabled -}} - {{- printf "%s:%d" $gateway.ingress.host 80 | indent 1 }} + {{- $gateway.gateway_config.self_mirror_addr | default (printf "%s:%d" $gateway.ingress.host 80) | indent 1 }} {{- else -}} {{- $defaultHost := printf "%s.%s.svc.cluster.local" $gateway.name .Release.Namespace }} {{- $defaultPort := default .Values.defaults.server_config.servers.grpc.port $gateway.server_config.servers.grpc.port }}