Skip to content
This repository has been archived by the owner on Mar 17, 2024. It is now read-only.

Commit

Permalink
Make values in lookup.redis optional (#401)
Browse files Browse the repository at this point in the history
  • Loading branch information
Guillaume Roland authored Oct 15, 2022
1 parent 562df8c commit 71c0095
Showing 1 changed file with 24 additions and 8 deletions.
32 changes: 24 additions & 8 deletions charts/kafka-lag-exporter/templates/030-ConfigMap.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -75,14 +75,30 @@ data:
{{- if .Values.lookup.redis.enabled }}
{{- with .Values.lookup.redis }}
lookup-table.redis = {
host = {{ .host | quote }}
database = {{ .database | quote }}
port = {{ .port | quote }}
timeout = {{ .timeout }}
prefix = {{ .prefix | quote }}
separator = {{ .separator | quote }}
retention = {{ .retention | quote }}
expiration = {{ .expiration | quote }}
{{- with .host }}
host = {{ . }}
{{- end }}
{{- with .database }}
database = {{ . }}
{{- end }}
{{- with .port }}
port = {{ . }}
{{- end }}
{{- with .timeout }}
timeout = {{ . }}
{{- end }}
{{- with .prefix }}
prefix = {{ . }}
{{- end }}
{{- with .separator }}
separator = {{ . }}
{{- end }}
{{- with .retention }}
retention = {{ . }}
{{- end }}
{{- with .expiration }}
expiration = {{ . }}
{{- end }}
}
{{- end }}
{{- else }}
Expand Down

0 comments on commit 71c0095

Please sign in to comment.