Skip to content

Commit 3e3f9e9

Browse files
authored
Sginn/migrator db env (#181)
1 parent 8c97ecb commit 3e3f9e9

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

charts/sourcegraph/templates/frontend/sourcegraph-frontend.Deployment.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,9 +54,11 @@ spec:
5454
imagePullPolicy: {{ .Values.sourcegraph.image.pullPolicy }}
5555
args: {{- default (list "up") .Values.migrator.args | toYaml | nindent 8 }}
5656
env:
57+
{{- if not .Values.migrator.databaseAuthOverrideEnvVars }}
5758
{{- include "sourcegraph.databaseAuth" (list . "pgsql" "PG") | nindent 8 }}
5859
{{- include "sourcegraph.databaseAuth" (list . "codeIntelDB" "CODEINTEL_PG") | nindent 8 }}
5960
{{- include "sourcegraph.databaseAuth" (list . "codeInsightsDB" "CODEINSIGHTS_PG") | nindent 8 }}
61+
{{- end }}
6062
{{- range $name, $item := .Values.frontend.env }}
6163
- name: {{ $name }}
6264
{{- $item | toYaml | nindent 10 }}

ci/override.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@ storageClass:
33
name: standard
44

55
sourcegraph:
6-
localDevMode: true
6+
localDevMode: true

0 commit comments

Comments
 (0)