Skip to content

Commit

Permalink
feat: add conditional logic for Redis IP family in Helm chart templates
Browse files Browse the repository at this point in the history
  • Loading branch information
simlarsen committed Jan 1, 2025
1 parent 1abf1df commit f05b0a1
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
6 changes: 5 additions & 1 deletion HelmChart/Public/oneuptime/templates/_helpers.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -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}}
Expand Down
1 change: 1 addition & 0 deletions HelmChart/Public/oneuptime/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,7 @@ redis:
enabled: true
clusterDomain: *global-cluster-domain
architecture: standalone
ipFamily: 4
auth:
enabled: true
master:
Expand Down

0 comments on commit f05b0a1

Please sign in to comment.