Skip to content

Commit 12044eb

Browse files
committed
Removed hardwired sentinel port and masterset name. Updated changelog.
1 parent 15abe2f commit 12044eb

File tree

3 files changed

+8
-3
lines changed

3 files changed

+8
-3
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@
22

33
## In Development
44

5+
## v0.51.0
6+
* Added Redis with Sentinel to replace Etcd as backend coordinator (#167)
7+
58
## v0.50.0
69
* Drop Helm `v2` support and fully migrate to Helm `v3` (#163)
710
* Switch dependencies from deprecated `helm/charts` to new Bitnami Subcharts (#163)

Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ apiVersion: v2
22
# StackStorm version which refers to Docker images tag
33
appVersion: 3.4dev
44
name: stackstorm-ha
5-
version: 0.50.0
5+
version: 0.51.0
66
description: StackStorm K8s Helm Chart, optimized for running StackStorm in HA environment.
77
home: https://stackstorm.com/
88
icon: https://landscape.cncf.io/logos/stack-storm.svg

templates/_helpers.tpl

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,11 +83,13 @@ Create the name of the stackstorm-ha service account to use
8383
{{- fail "value for redis.sentinel.enabled MUST be true" }}
8484
{{- end }}
8585
{{- $replicas := (int (index .Values "redis" "cluster" "slaveCount")) }}
86+
{{- $master_name := (index .Values "redis" "sentinel" "masterSet") }}
87+
{{- $sentinel_port := (index .Values "redis" "sentinel" "port") }}
8688
{{- range $index0 := until $replicas -}}
8789
{{- if eq $index0 0 -}}
88-
{{ $.Release.Name }}-redis-node-{{ $index0 }}.{{ $.Release.Name }}-redis-headless:26379?sentinel=mymaster
90+
{{ $.Release.Name }}-redis-node-{{ $index0 }}.{{ $.Release.Name }}-redis-headless:{{ $sentinel_port }}?sentinel={{ $master_name }}
8991
{{- else -}}
90-
&sentinel_fallback={{ $.Release.Name }}-redis-node-{{ $index0 }}.{{ $.Release.Name }}-redis-headless:26379
92+
&sentinel_fallback={{ $.Release.Name }}-redis-node-{{ $index0 }}.{{ $.Release.Name }}-redis-headless:{{ $sentinel_port }}
9193
{{- end -}}
9294
{{- end -}}
9395
{{- end -}}

0 commit comments

Comments
 (0)