Skip to content

Commit

Permalink
Additional configuration for redis instances
Browse files Browse the repository at this point in the history
  • Loading branch information
timetinytim committed May 14, 2024
1 parent 2675296 commit 5e7650a
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions templates/configmap-env.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -73,10 +73,10 @@ data:
{{- end }}
REDIS_PORT: {{ .Values.redis.port | default "6379" | quote }}
{{- if .Values.redis.sidekiq.enabled }}
{{- if .Values.redis.sidekiq.host }}
SIDEKIQ_REDIS_HOST: {{ .Values.redis.sidekiq.host }}
{{- if .Values.redis.sidekiq.hostname }}
SIDEKIQ_REDIS_HOST: {{ .Values.redis.sidekiq.hostname }}
{{- else }}
SIDEKIQ_REDIS_HOST: {{ .Values.redis.host }}
SIDEKIQ_REDIS_HOST: {{ .Values.redis.hostname }}
{{- end }}
{{- if .Values.redis.sidekiq.port }}
SIDEKIQ_REDIS_PORT: {{ .Values.redis.sidekiq.port }}
Expand All @@ -85,10 +85,10 @@ data:
{{- end }}
{{- end }}
{{- if .Values.redis.cache.enabled }}
{{- if .Values.redis.cache.host }}
CACHE_REDIS_HOST: {{ .Values.redis.cache.host }}
{{- if .Values.redis.cache.hostname }}
CACHE_REDIS_HOST: {{ .Values.redis.cache.hostname }}
{{- else }}
CACHE_REDIS_HOST: {{ .Values.redis.host}}
CACHE_REDIS_HOST: {{ .Values.redis.hostname}}
{{- end }}
{{- if .Values.redis.cache.port }}
CACHE_REDIS_PORT: {{ .Values.redis.cache.port }}
Expand Down

0 comments on commit 5e7650a

Please sign in to comment.