From f05b0a15ee2d368702f77ef171bbe59664dcfeb2 Mon Sep 17 00:00:00 2001 From: Simon Larsen Date: Wed, 1 Jan 2025 18:42:38 +0000 Subject: [PATCH] feat: add conditional logic for Redis IP family in Helm chart templates --- HelmChart/Public/oneuptime/templates/_helpers.tpl | 6 +++++- HelmChart/Public/oneuptime/values.yaml | 1 + 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/HelmChart/Public/oneuptime/templates/_helpers.tpl b/HelmChart/Public/oneuptime/templates/_helpers.tpl index fec34a7e0d..83f81dd449 100644 --- a/HelmChart/Public/oneuptime/templates/_helpers.tpl +++ b/HelmChart/Public/oneuptime/templates/_helpers.tpl @@ -298,7 +298,11 @@ Usage: {{- end }} {{- end }} - name: REDIS_IP_FAMILY - value: {{ printf "%s" $.Values.externalRedis.ipFamily | quote }} + {{- if $.Values.redis.enabled }} + value: {{ printf "%s" $.Values.redis.ipFamily | quote }} + {{- else }} + value: {{ $.Values.externalRedis.ipFamily | quote }} + {{- end }} - name: REDIS_DB {{- if $.Values.redis.enabled }} value: {{ printf "0" | squote}} diff --git a/HelmChart/Public/oneuptime/values.yaml b/HelmChart/Public/oneuptime/values.yaml index 9e470e0c45..ea0ceeda2b 100644 --- a/HelmChart/Public/oneuptime/values.yaml +++ b/HelmChart/Public/oneuptime/values.yaml @@ -105,6 +105,7 @@ redis: enabled: true clusterDomain: *global-cluster-domain architecture: standalone + ipFamily: 4 auth: enabled: true master: