diff --git a/bitnami/redis/CHANGELOG.md b/bitnami/redis/CHANGELOG.md index e23ecefaf03d9b..59f435115be869 100644 --- a/bitnami/redis/CHANGELOG.md +++ b/bitnami/redis/CHANGELOG.md @@ -1,8 +1,8 @@ # Changelog -## 20.13.3 (2025-04-28) +## 20.13.4 (2025-04-29) -* [bitnami/redis] Release 20.13.3 ([#33217](https://github.com/bitnami/charts/pull/33217)) +* [bitnami/redis] Switch shell from /bin/sh to /bin/bash to improve process handling ([#33181](https://github.com/bitnami/charts/pull/33181)) ## 20.13.2 (2025-04-24) diff --git a/bitnami/redis/Chart.yaml b/bitnami/redis/Chart.yaml index b4d28b0e1ff576..ec2f2836d8f1a0 100644 --- a/bitnami/redis/Chart.yaml +++ b/bitnami/redis/Chart.yaml @@ -37,4 +37,4 @@ maintainers: name: redis sources: - https://github.com/bitnami/charts/tree/main/bitnami/redis -version: 20.13.3 +version: 20.13.4 diff --git a/bitnami/redis/templates/master/application.yaml b/bitnami/redis/templates/master/application.yaml index e310c1893dab50..d6df9358884d16 100644 --- a/bitnami/redis/templates/master/application.yaml +++ b/bitnami/redis/templates/master/application.yaml @@ -133,7 +133,7 @@ spec: args: {{- include "common.tplvalues.render" (dict "value" .Values.master.args "context" $) | nindent 12 }} {{- else }} args: - - -c + - -ec - /opt/bitnami/scripts/start-scripts/start-master.sh {{- end }} env: @@ -215,8 +215,8 @@ spec: failureThreshold: {{ .Values.master.livenessProbe.failureThreshold }} exec: command: - - sh - - -c + - /bin/bash + - -ec - /health/ping_liveness_local.sh {{ .Values.master.livenessProbe.timeoutSeconds }} {{- end }} {{- if .Values.master.customReadinessProbe }} @@ -230,8 +230,8 @@ spec: failureThreshold: {{ .Values.master.readinessProbe.failureThreshold }} exec: command: - - sh - - -c + - /bin/bash + - -ec - /health/ping_readiness_local.sh {{ .Values.master.readinessProbe.timeoutSeconds }} {{- end }} {{- end }} @@ -288,7 +288,7 @@ spec: {{- else }} command: - /bin/bash - - -c + - -ec - | {{- if and .Values.auth.enabled .Values.auth.usePasswordFiles }} export REDIS_PASSWORD="$(< $REDIS_PASSWORD_FILE)" diff --git a/bitnami/redis/templates/replicas/application.yaml b/bitnami/redis/templates/replicas/application.yaml index 7301b5330b7160..54b527c47b2ba5 100644 --- a/bitnami/redis/templates/replicas/application.yaml +++ b/bitnami/redis/templates/replicas/application.yaml @@ -133,7 +133,7 @@ spec: args: {{- include "common.tplvalues.render" (dict "value" .Values.replica.args "context" $) | nindent 12 }} {{- else }} args: - - -c + - -ec - /opt/bitnami/scripts/start-scripts/start-replica.sh {{- end }} env: @@ -235,8 +235,8 @@ spec: failureThreshold: {{ .Values.replica.livenessProbe.failureThreshold }} exec: command: - - sh - - -c + - /bin/bash + - -ec - /health/ping_liveness_local_and_master.sh {{ .Values.replica.livenessProbe.timeoutSeconds }} {{- end }} {{- if .Values.replica.customReadinessProbe }} @@ -250,8 +250,8 @@ spec: failureThreshold: {{ .Values.replica.readinessProbe.failureThreshold }} exec: command: - - sh - - -c + - /bin/bash + - -ec - /health/ping_readiness_local_and_master.sh {{ .Values.replica.readinessProbe.timeoutSeconds }} {{- end }} {{- end }} @@ -308,7 +308,7 @@ spec: {{- else }} command: - /bin/bash - - -c + - -ec - | {{- if and .Values.auth.enabled .Values.auth.usePasswordFiles }} export REDIS_PASSWORD="$(< $REDIS_PASSWORD_FILE)" diff --git a/bitnami/redis/templates/sentinel/statefulset.yaml b/bitnami/redis/templates/sentinel/statefulset.yaml index a3d83448cbedac..367750d502a09b 100644 --- a/bitnami/redis/templates/sentinel/statefulset.yaml +++ b/bitnami/redis/templates/sentinel/statefulset.yaml @@ -120,7 +120,7 @@ spec: exec: command: - /bin/bash - - -c + - -ec - /opt/bitnami/scripts/start-scripts/prestop-redis.sh {{- end }} {{- end }} @@ -132,7 +132,7 @@ spec: {{- else if .Values.replica.command }} command: {{- include "common.tplvalues.render" (dict "value" .Values.replica.command "context" $) | nindent 12 }} {{- else }} - command: ['/bin/bash', '-c'] + command: ['/bin/bash', '-ec'] {{- end }} {{- if .Values.diagnosticMode.enabled }} args: {{- include "common.tplvalues.render" (dict "value" .Values.diagnosticMode.args "context" $) | nindent 12 }} @@ -259,8 +259,8 @@ spec: startupProbe: {{- include "common.tplvalues.render" (dict "value" (omit .Values.replica.startupProbe "enabled") "context" $) | nindent 12 }} exec: command: - - sh - - -c + - /bin/bash + - -ec - /health/ping_liveness_local.sh {{ .Values.replica.livenessProbe.timeoutSeconds }} {{- end }} {{- if .Values.replica.customLivenessProbe }} @@ -274,8 +274,8 @@ spec: failureThreshold: {{ .Values.replica.livenessProbe.failureThreshold }} exec: command: - - sh - - -c + - /bin/bash + - -ec - /health/ping_liveness_local.sh {{ .Values.replica.livenessProbe.timeoutSeconds }} {{- end }} {{- if .Values.replica.customReadinessProbe }} @@ -289,8 +289,8 @@ spec: failureThreshold: {{ .Values.replica.readinessProbe.failureThreshold }} exec: command: - - sh - - -c + - /bin/bash + - -ec - /health/ping_readiness_local.sh {{ .Values.replica.readinessProbe.timeoutSeconds }} {{- end }} {{- end }} @@ -347,7 +347,7 @@ spec: exec: command: - /bin/bash - - -c + - -ec - /opt/bitnami/scripts/start-scripts/prestop-sentinel.sh {{- end }} {{- end }} @@ -359,7 +359,7 @@ spec: {{- else if .Values.sentinel.command }} command: {{- include "common.tplvalues.render" (dict "value" .Values.sentinel.command "context" $) | nindent 12 }} {{- else }} - command: ['/bin/bash', '-c'] + command: ['/bin/bash', '-ec'] {{- end }} {{- if .Values.diagnosticMode.enabled }} args: {{- include "common.tplvalues.render" (dict "value" .Values.diagnosticMode.args "context" $) | nindent 12 }} @@ -453,8 +453,8 @@ spec: startupProbe: {{- include "common.tplvalues.render" (dict "value" (omit .Values.sentinel.startupProbe "enabled") "context" $) | nindent 12 }} exec: command: - - sh - - -c + - /bin/bash + - -ec - /health/ping_sentinel.sh {{ .Values.sentinel.livenessProbe.timeoutSeconds }} {{- end }} {{- if .Values.sentinel.customLivenessProbe }} @@ -468,8 +468,8 @@ spec: failureThreshold: {{ .Values.sentinel.livenessProbe.failureThreshold }} exec: command: - - sh - - -c + - /bin/bash + - -ec - /health/ping_sentinel.sh {{ .Values.sentinel.livenessProbe.timeoutSeconds }} {{- end }} {{- end }} @@ -485,8 +485,8 @@ spec: failureThreshold: {{ .Values.sentinel.readinessProbe.failureThreshold }} exec: command: - - sh - - -c + - /bin/bash + - -ec - /health/ping_sentinel.sh {{ .Values.sentinel.readinessProbe.timeoutSeconds }} {{- end }} {{- end }} @@ -544,7 +544,7 @@ spec: {{- else }} command: - /bin/bash - - -c + - -ec - | {{- if and .Values.auth.enabled .Values.auth.usePasswordFiles }} export REDIS_PASSWORD="$(< $REDIS_PASSWORD_FILE)" diff --git a/bitnami/redis/values.yaml b/bitnami/redis/values.yaml index 3542ec7cff6785..ef5e11a8f53d6c 100644 --- a/bitnami/redis/values.yaml +++ b/bitnami/redis/values.yaml @@ -496,7 +496,7 @@ master: ## - name: your-image-name ## image: your-image ## imagePullPolicy: Always - ## command: ['sh', '-c', 'echo "hello world"'] + ## command: ['/bin/bash', '-ec', 'echo "hello world"'] ## initContainers: [] ## Persistence parameters @@ -981,7 +981,7 @@ replica: ## - name: your-image-name ## image: your-image ## imagePullPolicy: Always - ## command: ['sh', '-c', 'echo "hello world"'] + ## command: ['/bin/bash', '-c', 'echo "hello world"'] ## initContainers: [] ## Persistence Parameters