Skip to content

Commit

Permalink
Add cache support
Browse files Browse the repository at this point in the history
  • Loading branch information
nimrod-teich committed Mar 4, 2024
1 parent ba67262 commit 6fc141d
Showing 1 changed file with 14 additions and 4 deletions.
18 changes: 14 additions & 4 deletions charts/consumer/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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 "," }}
Expand Down Expand Up @@ -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 }}
Expand Down

0 comments on commit 6fc141d

Please sign in to comment.