From a1198ff42a7d440284006a1ef91dfe630aab47af Mon Sep 17 00:00:00 2001 From: "Miguel A. Cabrera Minagorri" Date: Mon, 8 Jul 2019 09:43:37 +0000 Subject: [PATCH] Change Redis hardcoded data directory to the value at the Values.yaml when changing permissions deploying as root --- stable/redis/Chart.yaml | 2 +- stable/redis/templates/redis-master-statefulset.yaml | 2 +- stable/redis/templates/redis-slave-statefulset.yaml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/stable/redis/Chart.yaml b/stable/redis/Chart.yaml index 234311ba2fba..23449ee9daf8 100644 --- a/stable/redis/Chart.yaml +++ b/stable/redis/Chart.yaml @@ -1,6 +1,6 @@ apiVersion: v1 name: redis -version: 8.0.18 +version: 8.0.19 appVersion: 5.0.5 description: Open source, advanced key-value store. It is often referred to as a data structure server since keys can contain strings, hashes, lists, sets and sorted sets. keywords: diff --git a/stable/redis/templates/redis-master-statefulset.yaml b/stable/redis/templates/redis-master-statefulset.yaml index 688b313c5b3d..2bafaa144664 100644 --- a/stable/redis/templates/redis-master-statefulset.yaml +++ b/stable/redis/templates/redis-master-statefulset.yaml @@ -70,7 +70,7 @@ spec: - | {{- if (eq .Values.securityContext.runAsUser 0.0) }} useradd redis - chown -R redis /data + chown -R redis {{ .Values.master.persistence.path }} {{- end }} if [[ -n $REDIS_PASSWORD_FILE ]]; then password_aux=`cat ${REDIS_PASSWORD_FILE}` diff --git a/stable/redis/templates/redis-slave-statefulset.yaml b/stable/redis/templates/redis-slave-statefulset.yaml index dfda0dc808dc..32eae3305221 100644 --- a/stable/redis/templates/redis-slave-statefulset.yaml +++ b/stable/redis/templates/redis-slave-statefulset.yaml @@ -78,7 +78,7 @@ spec: - | {{- if (eq .Values.securityContext.runAsUser 0.0) }} useradd redis - chown -R redis /data + chown -R redis {{ .Values.slave.persistence.path }} {{- end }} if [[ -n $REDIS_PASSWORD_FILE ]]; then password_aux=`cat ${REDIS_PASSWORD_FILE}`