From 554d316876558dd0e1772d754cbe4d60d2d69e95 Mon Sep 17 00:00:00 2001 From: Arnob Kumar Saha Date: Wed, 19 Aug 2026 16:39:58 +0600 Subject: [PATCH] Turn off Redis AOF on the ace-cache Render an ace-cache-config secret with 'appendonly no' and wire it into the Redis via spec.configuration.secretName, mirroring how the ace-db config secret is wired. Signed-off-by: Arnob Kumar Saha --- charts/ace/templates/cache/cache-config.yaml | 15 +++++++++++++++ charts/ace/templates/cache/cache.yaml | 2 ++ 2 files changed, 17 insertions(+) create mode 100644 charts/ace/templates/cache/cache-config.yaml diff --git a/charts/ace/templates/cache/cache-config.yaml b/charts/ace/templates/cache/cache-config.yaml new file mode 100644 index 000000000..6d81b1988 --- /dev/null +++ b/charts/ace/templates/cache/cache-config.yaml @@ -0,0 +1,15 @@ +apiVersion: v1 +kind: Secret +metadata: + name: {{ include "ace.fullname" . }}-cache-config + namespace: {{ .Release.Namespace }} + labels: + {{- include "ace.offshootLabels" . | nindent 4 }} + app.kubernetes.io/component: database + app.kubernetes.io/instance: {{ include "ace.fullname" . }}-cache + app.kubernetes.io/managed-by: kubedb.com + app.kubernetes.io/name: redises.kubedb.com +type: Opaque +stringData: + redis.conf: | + appendonly no diff --git a/charts/ace/templates/cache/cache.yaml b/charts/ace/templates/cache/cache.yaml index 5da4165ee..10cbdb2bb 100644 --- a/charts/ace/templates/cache/cache.yaml +++ b/charts/ace/templates/cache/cache.yaml @@ -50,6 +50,8 @@ spec: runAsGroup: {{ .Values.securityContext.runAsUser }} {{- end }} deletionPolicy: {{ .Values.settings.cache.deletionPolicy }} + configuration: + secretName: {{ include "ace.fullname" . }}-cache-config authSecret: name: {{ include "ace.fullname" . }}-cache-auth externallyManaged: true