chore(helm): disabling redis string if not enabled (#1153)
Signed-off-by: rjshrjndrn <rjshrjndrn@gmail.com>
This commit is contained in:
parent
76bb483505
commit
62f238cdd0
2 changed files with 3 additions and 2 deletions
|
|
@ -51,8 +51,7 @@ spec:
|
||||||
value: '{{ .Values.global.s3.region }}'
|
value: '{{ .Values.global.s3.region }}'
|
||||||
- name: LICENSE_KEY
|
- name: LICENSE_KEY
|
||||||
value: '{{ .Values.global.enterpriseEditionLicense }}'
|
value: '{{ .Values.global.enterpriseEditionLicense }}'
|
||||||
- name: REDIS_STRING
|
{{- include "openreplay.env.redis_string" .Values.global.redis | nindent 12 }}
|
||||||
value: '{{ .Values.global.redis.redisHost }}:{{ .Values.global.redis.redisPort }}'
|
|
||||||
- name: KAFKA_SERVERS
|
- name: KAFKA_SERVERS
|
||||||
value: '{{ .Values.global.kafka.kafkaHost }}:{{ .Values.global.kafka.kafkaPort }}'
|
value: '{{ .Values.global.kafka.kafkaHost }}:{{ .Values.global.kafka.kafkaPort }}'
|
||||||
- name: KAFKA_USE_SSL
|
- name: KAFKA_USE_SSL
|
||||||
|
|
|
||||||
|
|
@ -65,6 +65,7 @@ Create the name of the service account to use
|
||||||
Create the environment configuration for REDIS_STRING
|
Create the environment configuration for REDIS_STRING
|
||||||
*/}}
|
*/}}
|
||||||
{{- define "openreplay.env.redis_string" -}}
|
{{- define "openreplay.env.redis_string" -}}
|
||||||
|
{{- if .enabled }}
|
||||||
{{- $scheme := (eq (.tls | default dict).enabled true) | ternary "rediss" "redis" -}}
|
{{- $scheme := (eq (.tls | default dict).enabled true) | ternary "rediss" "redis" -}}
|
||||||
{{- $auth := "" -}}
|
{{- $auth := "" -}}
|
||||||
{{- if or .existingSecret .redisPassword -}}
|
{{- if or .existingSecret .redisPassword -}}
|
||||||
|
|
@ -83,6 +84,7 @@ Create the environment configuration for REDIS_STRING
|
||||||
- name: REDIS_STRING
|
- name: REDIS_STRING
|
||||||
value: '{{ $scheme }}://{{ $auth }}{{ .redisHost }}:{{ .redisPort }}'
|
value: '{{ $scheme }}://{{ $auth }}{{ .redisHost }}:{{ .redisPort }}'
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
{{- end }}
|
||||||
|
|
||||||
{{/*
|
{{/*
|
||||||
Create the volume mount config for redis TLS certificates
|
Create the volume mount config for redis TLS certificates
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue