From 60649baa44b4e6fb72dd845766af466619eebec4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=81ukasz=20Osipiuk?= Date: Thu, 24 Nov 2022 17:24:32 +0100 Subject: [PATCH] Only add base-directory option for filesystem exchange --- charts/trino/templates/configmap-coordinator.yaml | 2 ++ charts/trino/templates/configmap-worker.yaml | 2 ++ 2 files changed, 4 insertions(+) diff --git a/charts/trino/templates/configmap-coordinator.yaml b/charts/trino/templates/configmap-coordinator.yaml index 804df8b0..5b61b390 100644 --- a/charts/trino/templates/configmap-coordinator.yaml +++ b/charts/trino/templates/configmap-coordinator.yaml @@ -75,7 +75,9 @@ data: exchange-manager.properties: | exchange-manager.name={{ .Values.server.exchangeManager.name }} + {{ if eq .Values.server.exchangeManager.name "filesystem" }} exchange.base-directory={{ .Values.server.exchangeManager.baseDir }} + {{- end }} {{- range $configValue := .Values.additionalExchangeManagerProperties }} {{ $configValue }} {{- end }} diff --git a/charts/trino/templates/configmap-worker.yaml b/charts/trino/templates/configmap-worker.yaml index 1e6fa1aa..c752bf56 100644 --- a/charts/trino/templates/configmap-worker.yaml +++ b/charts/trino/templates/configmap-worker.yaml @@ -53,7 +53,9 @@ data: exchange-manager.properties: | exchange-manager.name={{ .Values.server.exchangeManager.name }} + {{ if eq .Values.server.exchangeManager.name "filesystem" }} exchange.base-directory={{ .Values.server.exchangeManager.baseDir }} + {{- end }} {{- range $configValue := .Values.additionalExchangeManagerProperties }} {{ $configValue }} {{- end }}