Skip to content

Commit db4973a

Browse files
committed
Add config values for Redis endpoint env vars without secrets
1 parent c4a54ed commit db4973a

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

charts/sourcegraph/templates/_helpers.tpl

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -249,6 +249,7 @@ app.kubernetes.io/name: jaeger
249249
{{- end }}
250250

251251
{{- define "sourcegraph.redisConnection" -}}
252+
{{- if .Values.sourcegraph.createKubernetesSecrets -}}
252253
- name: REDIS_CACHE_ENDPOINT
253254
valueFrom:
254255
secretKeyRef:
@@ -259,7 +260,13 @@ app.kubernetes.io/name: jaeger
259260
secretKeyRef:
260261
key: endpoint
261262
name: {{ default .Values.redisStore.name .Values.redisStore.connection.existingSecret }}
262-
{{- end }}
263+
{{- else -}}
264+
- name: REDIS_CACHE_ENDPOINT
265+
value: {{ .Values.sourcegraph.redisCacheEndpoint }}
266+
- name: REDIS_STORE_ENDPOINT
267+
value: {{ .Values.sourcegraph.redisStoreEndpoint }}
268+
{{- end -}}
269+
{{- end -}}
263270

264271
{{- define "sourcegraph.authChecksum" -}}
265272
{{- $checksum := list .Values.codeInsightsDB.auth -}}

0 commit comments

Comments
 (0)