diff --git a/stable/redis/Chart.yaml b/stable/redis/Chart.yaml index 3367a2ff0d..b8a96affd0 100644 --- a/stable/redis/Chart.yaml +++ b/stable/redis/Chart.yaml @@ -1,6 +1,6 @@ apiVersion: v1 name: redis -version: 10.3.0 +version: 10.3.1 appVersion: 5.0.7 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 99ec1f1428..3c2f183d27 100644 --- a/stable/redis/templates/redis-master-statefulset.yaml +++ b/stable/redis/templates/redis-master-statefulset.yaml @@ -78,7 +78,7 @@ spec: - /bin/bash - -c - | - {{- if (eq .Values.securityContext.runAsUser 0.0) }} + {{- if (eq (.Values.securityContext.runAsUser | int) 0) }} useradd redis chown -R redis {{ .Values.master.persistence.path }} {{- end }} diff --git a/stable/redis/templates/redis-slave-statefulset.yaml b/stable/redis/templates/redis-slave-statefulset.yaml index 59a7896709..f28c545238 100644 --- a/stable/redis/templates/redis-slave-statefulset.yaml +++ b/stable/redis/templates/redis-slave-statefulset.yaml @@ -84,7 +84,7 @@ spec: - /bin/bash - -c - | - {{- if (eq .Values.securityContext.runAsUser 0.0) }} + {{- if (eq (.Values.securityContext.runAsUser | int) 0) }} useradd redis chown -R redis {{ .Values.slave.persistence.path }} {{- end }}