File tree Expand file tree Collapse file tree 5 files changed +7
-5
lines changed
charts/sourcegraph/templates Expand file tree Collapse file tree 5 files changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -278,7 +278,9 @@ and defining the REDIS_CACHE_ENDPOINT and REDIS_STORE_ENDPOINT env vars on front
278278{ {- if .Values.redisCache.connection.endpoint -} }
279279- name: REDIS_CACHE_ENDPOINT
280280 value: { { .Values.redisCache.connection.endpoint } }
281+ { {- if .Values.redisStore.connection.endpoint } } { {/*Add whitespace only if both are defined*/} }
281282{ { end -} }
283+ { {- end -} }
282284{ {- if .Values.redisStore.connection.endpoint -} }
283285- name: REDIS_STORE_ENDPOINT
284286 value: { { .Values.redisStore.connection.endpoint } }
Original file line number Diff line number Diff line change 6666 containers:
6767 - name: worker
6868 env:
69- { {- include " sourcegraph.redisConnection" $top | nindent 8 } }
69+ { {- with include " sourcegraph.redisConnection" $top | trim } } { { . | nindent 8 } } { {- end } }
7070 { {- if $allowlist } }
7171 - name: WORKER_JOB_ALLOWLIST
7272 value: { { $allowlist } }
Original file line number Diff line number Diff line change 6565 {{- range $name, $item := .Values.migrator.env }}
6666 - name : {{ $name }}
6767 {{- $item | toYaml | nindent 10 }}
68- {{- end }}
68+ {{- end }}
6969 {{- if not .Values.sourcegraph.localDevMode}}
7070 resources :
7171 {{- toYaml .Values.migrator.resources | nindent 10 }}
9595 - name : {{ $name }}
9696 {{- $item | toYaml | nindent 10 }}
9797 {{- end }}
98- {{- include "sourcegraph.redisConnection" .| nindent 8 }}
98+ {{- with include "sourcegraph.redisConnection" . | trim }}{{ . | nindent 8 }}{{- end }}
9999 {{- include "sourcegraph.openTelemetryEnv" . | nindent 8 }}
100100 {{- if .Values.blobstore.enabled }}
101101 - name : PRECISE_CODE_INTEL_UPLOAD_BACKEND
Original file line number Diff line number Diff line change 4949 image : {{ include "sourcegraph.image" (list . "gitserver") }}
5050 imagePullPolicy : {{ .Values.sourcegraph.image.pullPolicy }}
5151 env :
52- {{- include "sourcegraph.redisConnection" .| nindent 8 }}
52+ {{- with include "sourcegraph.redisConnection" . | trim }}{{ . | nindent 8 }}{{- end }}
5353 {{- range $name, $item := .Values.gitserver.env}}
5454 - name : {{ $name }}
5555 {{- $item | toYaml | nindent 10 }}
Original file line number Diff line number Diff line change 5050 {{- toYaml . | nindent 8 }}
5151 {{- end }}
5252 env :
53- {{- include "sourcegraph.redisConnection" . | nindent 8 }}
53+ {{- with include "sourcegraph.redisConnection" . | trim }}{{ . | nindent 8 }}{{- end }}
5454 {{- range $name, $item := .Values.searcher.env }}
5555 - name : {{ $name }}
5656 {{- $item | toYaml | nindent 10 }}
You can’t perform that action at this time.
0 commit comments