Skip to content

Commit

Permalink
✨ Supporting template in sentinel information
Browse files Browse the repository at this point in the history
Signed-off-by: Muhammed Hussein Karimi <[email protected]>
  • Loading branch information
mhkarimi1383 committed Jan 24, 2025
1 parent 0f2e101 commit 0e8cce7
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion charts/haproxy-redis-sentinel/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
apiVersion: v2
name: haproxy-redis-sentinel
description: A Helm chart for HAProxy with Redis Sentinel
version: 0.1.0
version: 0.1.1
appVersion: "0.0.11"
icon: https://raw.githubusercontent.com/ParminCloud/haproxy-redis-sentinel/master/docs/icon.png
sources:
Expand Down
8 changes: 4 additions & 4 deletions charts/haproxy-redis-sentinel/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -63,13 +63,13 @@ spec:
imagePullPolicy: {{ .Values.haproxyRedisSentinel.image.pullPolicy }}
env:
- name: SENTINEL_PASSWORD
value: {{ .Values.haproxyRedisSentinel.sentinel.password | quote }}
value: {{ tpl (.Values.haproxyRedisSentinel.sentinel.password | quote) . }}
- name: SENTINEL_HOST
value: {{ .Values.haproxyRedisSentinel.sentinel.host }}
value: {{ tpl .Values.haproxyRedisSentinel.sentinel.host . }}
- name: SENTINEL_PORT
value: {{ .Values.haproxyRedisSentinel.sentinel.port | quote }}
value: {{ tpl (.Values.haproxyRedisSentinel.sentinel.port | quote) . }}
- name: MASTER_NAME
value: {{ .Values.haproxyRedisSentinel.sentinel.masterName }}
value: {{ tpl .Values.haproxyRedisSentinel.sentinel.masterName . }}
- name: HAPROXY_BACKEND
value: redis_master_server
volumeMounts:
Expand Down
2 changes: 1 addition & 1 deletion charts/haproxy-redis-sentinel/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ haproxyRedisSentinel:
tag: ""
# -- haproxy-redis-sentinel image pullPolicy (set to Always if you want to use branched tags)
pullPolicy: "IfNotPresent"
# -- Redis Sentinel information
# -- Redis Sentinel information (Supports templating)
sentinel:
password: ""
host: ""
Expand Down

0 comments on commit 0e8cce7

Please sign in to comment.