Skip to content

Commit

Permalink
feat: add redisReplicationPassword values to connect secured replicat…
Browse files Browse the repository at this point in the history
…ion (#1021)

feat: add redisReplicationPassword values to connect secured replication cluster

Signed-off-by: drivebyer <[email protected]>
  • Loading branch information
drivebyer authored Jul 10, 2024
1 parent 08eb5eb commit 0dddaea
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 2 deletions.
4 changes: 2 additions & 2 deletions charts/redis-sentinel/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
apiVersion: v2
name: redis-sentinel
description: Provides easy redis setup definitions for Kubernetes services, and deployment.
version: 0.16.0
appVersion: "0.16.0"
version: 0.16.1
appVersion: "0.16.1"
home: https://github.com/ot-container-kit/redis-operator
sources:
- https://github.com/ot-container-kit/redis-operator
Expand Down
6 changes: 6 additions & 0 deletions charts/redis-sentinel/templates/redis-sentinel.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,12 @@ spec:
# Sentinel Config
redisSentinelConfig:
redisReplicationName: {{ .Values.redisSentinelConfig.redisReplicationName}}
{{- if and .Values.redisSentinelConfig.redisReplicationPassword.secretName .Values.redisSentinelConfig.redisReplicationPassword.secretKey }}
redisReplicationPassword:
secretKeyRef:
name: {{ .Values.redisSentinelConfig.redisReplicationPassword.secretName | quote }}
key: {{ .Values.redisSentinelConfig.redisReplicationPassword.secretKey | quote }}
{{- end }}
masterGroupName : {{ .Values.redisSentinelConfig.masterGroupName | default "myMaster" | quote}}
redisPort: {{ .Values.redisSentinelConfig.redisPort | default "6379" | quote}}
quorum: {{ .Values.redisSentinelConfig.quorum | default "2" | quote}}
Expand Down
3 changes: 3 additions & 0 deletions charts/redis-sentinel/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,9 @@ labels: {}

redisSentinelConfig:
redisReplicationName: "redis-replication"
redisReplicationPassword:
secretName: ""
secretKey: ""
masterGroupName: ""
redisPort: ""
quorum: ""
Expand Down

0 comments on commit 0dddaea

Please sign in to comment.