From 5efb4ebb67b893f0cc250d49c727ea61eb9bf472 Mon Sep 17 00:00:00 2001 From: Jared Schmidt Date: Tue, 28 Mar 2023 11:35:13 -0600 Subject: [PATCH] Adds ability to mount other files to keydb container --- keydb/templates/sts.yaml | 5 ++++- keydb/values.yaml | 5 +++++ 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/keydb/templates/sts.yaml b/keydb/templates/sts.yaml index 7dd9927..716fec8 100644 --- a/keydb/templates/sts.yaml +++ b/keydb/templates/sts.yaml @@ -130,7 +130,10 @@ spec: - name: utils mountPath: /utils readOnly: true - {{- if .Values.exporter.enabled }} + {{- if .Values.extraKeydbVolumeMounts }} + {{- toYaml .Values.extraKeydbVolumeMounts | nindent 8 }} + {{- end }} + {{- if .Values.exporter.enabled }} - name: redis-exporter {{- if .Values.exporter.image }} image: {{ .Values.exporter.image }} diff --git a/keydb/values.yaml b/keydb/values.yaml index dd7b5a6..38104a6 100644 --- a/keydb/values.yaml +++ b/keydb/values.yaml @@ -97,6 +97,11 @@ extraVolumes: [] # - name: empty-dir-volume # emptyDir: {} +# Extra volume mounts to the keydb container +extraKeydbVolumeMounts: [] + # - name: volume-from-secret + # mountPath: /mysecret + # Liveness Probe livenessProbe: enabled: true