From 6fc141d146885c037b09547752dfe1e0c41ff797 Mon Sep 17 00:00:00 2001 From: Nimrod Teich Date: Mon, 4 Mar 2024 12:01:58 +0200 Subject: [PATCH] Add cache support --- charts/consumer/templates/deployment.yaml | 18 ++++++++++++++---- 1 file changed, 14 insertions(+), 4 deletions(-) diff --git a/charts/consumer/templates/deployment.yaml b/charts/consumer/templates/deployment.yaml index 9489c20..1d57b0c 100644 --- a/charts/consumer/templates/deployment.yaml +++ b/charts/consumer/templates/deployment.yaml @@ -177,7 +177,10 @@ spec: --log_level {{ .Values.logLevel }} "--disable-conflict-transactions" {{- if .Values.cache.enabled }} - --cache-be {{ .Values.cache.backend }} + --shared-state, + {{- with .Values.cache.backend }} + --cache-be "{{ . }}", + {{- end }} {{- end }} {{- if .Values.cors.enabled }} --cors-headers {{ .Values.cors.headers | join "," }} @@ -207,15 +210,22 @@ spec: "--chain-id", '{{.Values.chainId}}', "--strategy", "{{.Values.strategy}}", "--disable-conflict-transactions", - {{- with .Values.refererBeAddress }} - --referer-be-address={{ . }}, - {{- end }} + {{ if .Values.cache.enabled }} + "--shared-state", + {{ with .Values.cache.backend }} + --cache-be={{ . }}, + {{ end }} + {{ end }} + {{ with .Values.refererBeAddress }} + --referer-be-address={{ . }}, + {{ end }} {{- if .Values.cors.enabled }} "--cors-headers", "{{ .Values.cors.headers | join "," }}", "--cors-origin", "{{ .Values.cors.origins | join "," }}", "--cors-methods", "{{ .Values.cors.methods | join "," }}", "--cdn-cache-duration", "{{ .Values.cors.maxAge }}", {{- end }} + "--log_level", "{{ .Values.logLevel }}" ] {{- end }}