From 2831a1ed2eeb3f93c8bf713b55ff2cabe2499325 Mon Sep 17 00:00:00 2001 From: Andre Ziviani Date: Fri, 30 Aug 2024 13:40:36 -0300 Subject: [PATCH] feat: Automatically add persistency option to memcached extended arguments if enabled --- .../helm/loki/templates/memcached/_memcached-statefulset.tpl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/production/helm/loki/templates/memcached/_memcached-statefulset.tpl b/production/helm/loki/templates/memcached/_memcached-statefulset.tpl index e659d7063be55..ce490ee6cd713 100644 --- a/production/helm/loki/templates/memcached/_memcached-statefulset.tpl +++ b/production/helm/loki/templates/memcached/_memcached-statefulset.tpl @@ -104,7 +104,7 @@ spec: name: client args: - -m {{ .allocatedMemory }} - - --extended=modern,track_sizes{{ with .extraExtendedOptions }},{{ . }}{{ end }} + - --extended=modern,track_sizes{{ if .persistence.enabled }},ext_path={{ .persistence.mountPath }}/file:{{ .persistence.storageSize }}{{ end }}{{ with .extraExtendedOptions }},{{ . }}{{ end }} - -I {{ .maxItemMemory }}m - -c {{ .connectionLimit }} - -v