Skip to content

armgit / sure

Public Imported from GitHub
0

The personal finance app for everyone (by everyone)

Ruby

Ensure redisSimple service port is cast to integer in helpers template (#517)

LPW7b91de50830f
diff --git a/charts/sure/templates/_helpers.tpl b/charts/sure/templates/_helpers.tpl
index 2b183d1027..2b202bc90a 100644
--- a/charts/sure/templates/_helpers.tpl
+++ b/charts/sure/templates/_helpers.tpl
@@ -69,7 +69,7 @@ app.kubernetes.io/instance: {{ .Release.Name }}
{{- printf "redis://default:$(REDIS_PASSWORD)@%s:6379/0" $host -}}
{{- else if .Values.redisSimple.enabled -}}
{{- $host := printf "%s-redis.%s.svc.cluster.local" (include "sure.fullname" .) .Release.Namespace -}}
- {{- printf "redis://default:$(REDIS_PASSWORD)@%s:%d/0" $host (.Values.redisSimple.service.port | default 6379) -}}
+ {{- printf "redis://default:$(REDIS_PASSWORD)@%s:%d/0" $host (int (.Values.redisSimple.service.port | default 6379)) -}}
{{- else -}}
{{- "" -}}
{{- end -}}