From 11ecf8af709e08f11ab7b6dce555e00b3e2a1096 Mon Sep 17 00:00:00 2001 From: "jiang.pengcheng" Date: Tue, 13 Jun 2023 14:56:10 +0800 Subject: [PATCH] [sn-platform][sn-platform-slim] Add if statement for customWorkerConfig --- charts/sn-platform-slim/templates/broker/broker-cluster.yaml | 2 ++ charts/sn-platform/templates/broker/broker-cluster.yaml | 2 ++ 2 files changed, 4 insertions(+) diff --git a/charts/sn-platform-slim/templates/broker/broker-cluster.yaml b/charts/sn-platform-slim/templates/broker/broker-cluster.yaml index 76653b227..8e519d716 100644 --- a/charts/sn-platform-slim/templates/broker/broker-cluster.yaml +++ b/charts/sn-platform-slim/templates/broker/broker-cluster.yaml @@ -191,7 +191,9 @@ spec: sinkEnabled: {{ .Values.broker.functionmesh.mesh.sinkEnabled }} sourceEnabled: {{ .Values.broker.functionmesh.mesh.sourceEnabled }} uploadEnabled: {{ .Values.broker.functionmesh.mesh.uploadEnabled }} + {{- if .Values.broker.functionmesh.customWorkerConfig }} customWorkerConfig: {{ .Values.broker.functionmesh.customWorkerConfig | quote }} + {{- end }} {{- if .Values.broker.functionmesh.custom }} custom: {{ toYaml .Values.broker.functionmesh.custom | indent 8 }} diff --git a/charts/sn-platform/templates/broker/broker-cluster.yaml b/charts/sn-platform/templates/broker/broker-cluster.yaml index 40b0b42bd..e700fdb85 100644 --- a/charts/sn-platform/templates/broker/broker-cluster.yaml +++ b/charts/sn-platform/templates/broker/broker-cluster.yaml @@ -195,7 +195,9 @@ spec: sinkEnabled: {{ .Values.broker.functionmesh.mesh.sinkEnabled }} sourceEnabled: {{ .Values.broker.functionmesh.mesh.sourceEnabled }} uploadEnabled: {{ .Values.broker.functionmesh.mesh.uploadEnabled }} + {{- if .Values.broker.functionmesh.customWorkerConfig }} customWorkerConfig: {{ .Values.broker.functionmesh.customWorkerConfig | quote }} + {{- end }} {{- if .Values.broker.functionmesh.custom }} custom: {{ toYaml .Values.broker.functionmesh.custom | indent 8 }}