From cdfb67ea5095e3ba3abb312900a7dadb4d43fe92 Mon Sep 17 00:00:00 2001
From: bbkz <bbkz@users.noreply.github.com>
Date: Mon, 7 Jun 2021 11:40:00 +0200
Subject: [PATCH] The redis config file must be the first parameter (#455)

* The redis config file must be the first parameter

* - the redis config file must be the first parameter (as well for sentinel)
- update to chart version 0.4.6
---
 charts/redis/Chart.yaml                 | 2 +-
 charts/redis/README.md                  | 2 +-
 charts/redis/templates/statefulset.yaml | 4 ++--
 3 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/charts/redis/Chart.yaml b/charts/redis/Chart.yaml
index 7a435e71..8613cb16 100644
--- a/charts/redis/Chart.yaml
+++ b/charts/redis/Chart.yaml
@@ -8,7 +8,7 @@ maintainers:
   - name: groundhog2k
 
 # This is the chart version
-version: 0.4.5
+version: 0.4.6
 
 # This is the version number of the application being deployed.
 appVersion: "6.2.4"
diff --git a/charts/redis/README.md b/charts/redis/README.md
index f4d06bd1..fef2d836 100644
--- a/charts/redis/README.md
+++ b/charts/redis/README.md
@@ -1,6 +1,6 @@
 # Redis
 
-![Version: 0.4.5](https://img.shields.io/badge/Version-0.4.5-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 6.2.4](https://img.shields.io/badge/AppVersion-6.2.4-informational?style=flat-square)
+![Version: 0.4.6](https://img.shields.io/badge/Version-0.4.6-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 6.2.4](https://img.shields.io/badge/AppVersion-6.2.4-informational?style=flat-square)
 
 A Helm chart for Redis on Kubernetes
 
diff --git a/charts/redis/templates/statefulset.yaml b/charts/redis/templates/statefulset.yaml
index b080d16e..6639124e 100644
--- a/charts/redis/templates/statefulset.yaml
+++ b/charts/redis/templates/statefulset.yaml
@@ -123,10 +123,10 @@ spec:
           command:
             - redis-server
           args:
+            - /data/conf/redis.conf
             {{- range .Values.args }}
             - {{ . }}
             {{- end }}
-            - /data/conf/redis.conf
           {{- with .Values.env }}
           env:
             {{- toYaml . | nindent 12 }}
@@ -193,10 +193,10 @@ spec:
           command:
             - redis-sentinel
           args:
+            - /data/conf/sentinel.conf
             {{- range .Values.sentinelArgs }}
             - {{ . }}
             {{- end }}
-            - /data/conf/sentinel.conf
           {{- with .Values.env }}
           env:
             {{- toYaml . | nindent 12 }}
-- 
GitLab