mirror of
https://github.com/bitnami/charts.git
synced 2026-03-16 06:47:30 +08:00
[bitnami/valkey] Set usePasswordFiles=true by default (#32121)
* [bitnami/valkey] Set `usePasswordFiles=true` by default Signed-off-by: Miguel Ruiz <miguel.ruiz@broadcom.com> * Update CHANGELOG.md Signed-off-by: Bitnami Containers <bitnami-bot@vmware.com> * Update README.md with readme-generator-for-helm Signed-off-by: Bitnami Containers <bitnami-bot@vmware.com> --------- Signed-off-by: Miguel Ruiz <miguel.ruiz@broadcom.com> Signed-off-by: Bitnami Containers <bitnami-bot@vmware.com> Co-authored-by: Bitnami Containers <bitnami-bot@vmware.com>
This commit is contained in:
@@ -1,8 +1,12 @@
|
|||||||
# Changelog
|
# Changelog
|
||||||
|
|
||||||
|
## 2.4.0 (2025-02-21)
|
||||||
|
|
||||||
|
* [bitnami/valkey] Set `usePasswordFiles=true` by default ([#32121](https://github.com/bitnami/charts/pull/32121))
|
||||||
|
|
||||||
## 2.3.0 (2025-02-20)
|
## 2.3.0 (2025-02-20)
|
||||||
|
|
||||||
* [bitnami/valkey] feat: use new helper for checking API versions ([#32064](https://github.com/bitnami/charts/pull/32064))
|
* [bitnami/valkey] feat: use new helper for checking API versions (#32064) ([b780cc1](https://github.com/bitnami/charts/commit/b780cc181c1f22e89f01aa5f2eb5f2516a0986de)), closes [#32064](https://github.com/bitnami/charts/issues/32064)
|
||||||
|
|
||||||
## <small>2.2.5 (2025-02-20)</small>
|
## <small>2.2.5 (2025-02-20)</small>
|
||||||
|
|
||||||
|
|||||||
@@ -36,4 +36,4 @@ maintainers:
|
|||||||
name: valkey
|
name: valkey
|
||||||
sources:
|
sources:
|
||||||
- https://github.com/bitnami/charts/tree/main/bitnami/valkey
|
- https://github.com/bitnami/charts/tree/main/bitnami/valkey
|
||||||
version: 2.3.0
|
version: 2.4.0
|
||||||
|
|||||||
@@ -480,7 +480,7 @@ helm install my-release --set primary.persistence.existingClaim=PVC_NAME oci://R
|
|||||||
| `auth.password` | Valkey password | `""` |
|
| `auth.password` | Valkey password | `""` |
|
||||||
| `auth.existingSecret` | The name of an existing secret with Valkey credentials | `""` |
|
| `auth.existingSecret` | The name of an existing secret with Valkey credentials | `""` |
|
||||||
| `auth.existingSecretPasswordKey` | Password key to be retrieved from existing secret | `""` |
|
| `auth.existingSecretPasswordKey` | Password key to be retrieved from existing secret | `""` |
|
||||||
| `auth.usePasswordFiles` | Mount credentials as files instead of using an environment variable | `false` |
|
| `auth.usePasswordFiles` | Mount credentials as files instead of using an environment variable | `true` |
|
||||||
| `auth.usePasswordFileFromSecret` | Mount password file from secret | `true` |
|
| `auth.usePasswordFileFromSecret` | Mount password file from secret | `true` |
|
||||||
| `commonConfiguration` | Common configuration to be added into the ConfigMap | `""` |
|
| `commonConfiguration` | Common configuration to be added into the ConfigMap | `""` |
|
||||||
| `existingConfigmap` | The name of an existing ConfigMap with your custom configuration for Valkey nodes | `""` |
|
| `existingConfigmap` | The name of an existing ConfigMap with your custom configuration for Valkey nodes | `""` |
|
||||||
|
|||||||
@@ -180,7 +180,7 @@ spec:
|
|||||||
{{- if .Values.auth.enabled }}
|
{{- if .Values.auth.enabled }}
|
||||||
{{- if .Values.auth.usePasswordFiles }}
|
{{- if .Values.auth.usePasswordFiles }}
|
||||||
- name: VALKEY_PASSWORD_FILE
|
- name: VALKEY_PASSWORD_FILE
|
||||||
value: "/opt/bitnami/valkey/secrets/valkey-password"
|
value: {{ printf "/opt/bitnami/valkey/secrets/%s" (include "valkey.secretPasswordKey" .) }}
|
||||||
{{- else }}
|
{{- else }}
|
||||||
- name: VALKEY_PASSWORD
|
- name: VALKEY_PASSWORD
|
||||||
valueFrom:
|
valueFrom:
|
||||||
@@ -320,9 +320,9 @@ spec:
|
|||||||
- /bin/bash
|
- /bin/bash
|
||||||
- -c
|
- -c
|
||||||
- |
|
- |
|
||||||
if [[ -f '/secrets/valkey-password' ]]; then
|
{{- if .Values.usePasswordFiles }}
|
||||||
export REDIS_PASSWORD=$(cat /secrets/valkey-password)
|
export REDIS_PASSWORD="$(< $REDIS_PASSWORD_FILE)"
|
||||||
fi
|
{{- end }}
|
||||||
redis_exporter{{- range $key, $value := .Values.metrics.extraArgs }} --{{ $key }}={{ $value }}{{- end }}
|
redis_exporter{{- range $key, $value := .Values.metrics.extraArgs }} --{{ $key }}={{ $value }}{{- end }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- if .Values.diagnosticMode.enabled }}
|
{{- if .Values.diagnosticMode.enabled }}
|
||||||
@@ -336,7 +336,10 @@ spec:
|
|||||||
{{- if .Values.auth.enabled }}
|
{{- if .Values.auth.enabled }}
|
||||||
- name: REDIS_USER
|
- name: REDIS_USER
|
||||||
value: default
|
value: default
|
||||||
{{- if (not .Values.auth.usePasswordFiles) }}
|
{{- if .Values.auth.usePasswordFiles }}
|
||||||
|
- name: REDIS_PASSWORD_FILE
|
||||||
|
value: {{ printf "/secrets/%s" (include "valkey.secretPasswordKey" .) }}
|
||||||
|
{{- else }}
|
||||||
- name: REDIS_PASSWORD
|
- name: REDIS_PASSWORD
|
||||||
valueFrom:
|
valueFrom:
|
||||||
secretKeyRef:
|
secretKeyRef:
|
||||||
|
|||||||
@@ -194,9 +194,9 @@ spec:
|
|||||||
{{- if .Values.auth.enabled }}
|
{{- if .Values.auth.enabled }}
|
||||||
{{- if .Values.auth.usePasswordFiles }}
|
{{- if .Values.auth.usePasswordFiles }}
|
||||||
- name: VALKEY_PASSWORD_FILE
|
- name: VALKEY_PASSWORD_FILE
|
||||||
value: "/opt/bitnami/valkey/secrets/valkey-password"
|
value: {{ printf "/opt/bitnami/valkey/secrets/%s" (include "valkey.secretPasswordKey" .) }}
|
||||||
- name: VALKEY_PRIMARY_PASSWORD_FILE
|
- name: VALKEY_PRIMARY_PASSWORD_FILE
|
||||||
value: "/opt/bitnami/valkey/secrets/valkey-password"
|
value: {{ printf "/opt/bitnami/valkey/secrets/%s" (include "valkey.secretPasswordKey" .) }}
|
||||||
{{- else }}
|
{{- else }}
|
||||||
- name: VALKEY_PASSWORD
|
- name: VALKEY_PASSWORD
|
||||||
valueFrom:
|
valueFrom:
|
||||||
@@ -340,9 +340,9 @@ spec:
|
|||||||
- /bin/bash
|
- /bin/bash
|
||||||
- -c
|
- -c
|
||||||
- |
|
- |
|
||||||
if [[ -f '/secrets/valkey-password' ]]; then
|
{{- if .Values.usePasswordFiles }}
|
||||||
export REDIS_PASSWORD=$(cat /secrets/redis-password)
|
export REDIS_PASSWORD="$(< $REDIS_PASSWORD_FILE)"
|
||||||
fi
|
{{- end }}
|
||||||
redis_exporter{{- range $key, $value := .Values.metrics.extraArgs }} --{{ $key }}={{ $value }}{{- end }}
|
redis_exporter{{- range $key, $value := .Values.metrics.extraArgs }} --{{ $key }}={{ $value }}{{- end }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- if .Values.diagnosticMode.enabled }}
|
{{- if .Values.diagnosticMode.enabled }}
|
||||||
@@ -356,7 +356,10 @@ spec:
|
|||||||
{{- if .Values.auth.enabled }}
|
{{- if .Values.auth.enabled }}
|
||||||
- name: REDIS_USER
|
- name: REDIS_USER
|
||||||
value: default
|
value: default
|
||||||
{{- if (not .Values.auth.usePasswordFiles) }}
|
{{- if .Values.auth.usePasswordFiles }}
|
||||||
|
- name: REDIS_PASSWORD_FILE
|
||||||
|
value: {{ printf "/secrets/%s" (include "valkey.secretPasswordKey" .) }}
|
||||||
|
{{- else }}
|
||||||
- name: REDIS_PASSWORD
|
- name: REDIS_PASSWORD
|
||||||
valueFrom:
|
valueFrom:
|
||||||
secretKeyRef:
|
secretKeyRef:
|
||||||
|
|||||||
@@ -186,9 +186,9 @@ spec:
|
|||||||
{{- if .Values.auth.enabled }}
|
{{- if .Values.auth.enabled }}
|
||||||
{{- if .Values.auth.usePasswordFiles }}
|
{{- if .Values.auth.usePasswordFiles }}
|
||||||
- name: VALKEY_PASSWORD_FILE
|
- name: VALKEY_PASSWORD_FILE
|
||||||
value: "/opt/bitnami/valkey/secrets/valkey-password"
|
value: {{ printf "/opt/bitnami/valkey/secrets/%s" (include "valkey.secretPasswordKey" .) }}
|
||||||
- name: VALKEY_PRIMARY_PASSWORD_FILE
|
- name: VALKEY_PRIMARY_PASSWORD_FILE
|
||||||
value: "/opt/bitnami/valkey/secrets/valkey-password"
|
value: {{ printf "/opt/bitnami/valkey/secrets/%s" (include "valkey.secretPasswordKey" .) }}
|
||||||
{{- else }}
|
{{- else }}
|
||||||
- name: VALKEY_PASSWORD
|
- name: VALKEY_PASSWORD
|
||||||
valueFrom:
|
valueFrom:
|
||||||
@@ -392,7 +392,7 @@ spec:
|
|||||||
{{- if .Values.auth.enabled }}
|
{{- if .Values.auth.enabled }}
|
||||||
{{- if .Values.auth.usePasswordFiles }}
|
{{- if .Values.auth.usePasswordFiles }}
|
||||||
- name: VALKEY_PASSWORD_FILE
|
- name: VALKEY_PASSWORD_FILE
|
||||||
value: "/opt/bitnami/valkey/secrets/valkey-password"
|
value: {{ printf "/opt/bitnami/valkey/secrets/%s" (include "valkey.secretPasswordKey" .) }}
|
||||||
{{- else }}
|
{{- else }}
|
||||||
- name: VALKEY_PASSWORD
|
- name: VALKEY_PASSWORD
|
||||||
valueFrom:
|
valueFrom:
|
||||||
@@ -546,9 +546,9 @@ spec:
|
|||||||
- /bin/bash
|
- /bin/bash
|
||||||
- -c
|
- -c
|
||||||
- |
|
- |
|
||||||
if [[ -f '/secrets/valkey-password' ]]; then
|
{{- if and .Values.usePasswordFiles }}
|
||||||
export REDIS_PASSWORD=$(cat /secrets/valkey-password)
|
export REDIS_PASSWORD="$(< $REDIS_PASSWORD_FILE)"
|
||||||
fi
|
{{- end }}
|
||||||
redis_exporter{{- range $key, $value := .Values.metrics.extraArgs }} --{{ $key }}={{ $value }}{{- end }}
|
redis_exporter{{- range $key, $value := .Values.metrics.extraArgs }} --{{ $key }}={{ $value }}{{- end }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- if .Values.diagnosticMode.enabled }}
|
{{- if .Values.diagnosticMode.enabled }}
|
||||||
@@ -562,7 +562,10 @@ spec:
|
|||||||
{{- if .Values.auth.enabled }}
|
{{- if .Values.auth.enabled }}
|
||||||
- name: REDIS_USER
|
- name: REDIS_USER
|
||||||
value: default
|
value: default
|
||||||
{{- if (not .Values.auth.usePasswordFiles) }}
|
{{- if .Values.auth.usePasswordFiles }}
|
||||||
|
- name: REDIS_PASSWORD_FILE
|
||||||
|
value: {{ printf "/secrets/%s" (include "valkey.secretPasswordKey" .) }}
|
||||||
|
{{- else }}
|
||||||
- name: REDIS_PASSWORD
|
- name: REDIS_PASSWORD
|
||||||
valueFrom:
|
valueFrom:
|
||||||
secretKeyRef:
|
secretKeyRef:
|
||||||
|
|||||||
@@ -158,7 +158,7 @@ auth:
|
|||||||
existingSecretPasswordKey: ""
|
existingSecretPasswordKey: ""
|
||||||
## @param auth.usePasswordFiles Mount credentials as files instead of using an environment variable
|
## @param auth.usePasswordFiles Mount credentials as files instead of using an environment variable
|
||||||
##
|
##
|
||||||
usePasswordFiles: false
|
usePasswordFiles: true
|
||||||
## @param auth.usePasswordFileFromSecret Mount password file from secret
|
## @param auth.usePasswordFileFromSecret Mount password file from secret
|
||||||
##
|
##
|
||||||
usePasswordFileFromSecret: true
|
usePasswordFileFromSecret: true
|
||||||
|
|||||||
Reference in New Issue
Block a user