Skip to content

Commit e36b068

Browse files
committed
added support for migrator.databaseAuthOverrideEnvVars in sourcegraph-migrator job
1 parent 5059ec3 commit e36b068

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

charts/sourcegraph-migrator/templates/migrator/sourcegraph-migrator.Job.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,9 +40,11 @@ spec:
4040
imagePullPolicy: {{ .Values.sourcegraph.image.pullPolicy }}
4141
args: {{- default (list "up") .Values.migrator.args | toYaml | nindent 8 }}
4242
env:
43+
{{- if not .Values.migrator.databaseAuthOverrideEnvVars }}
4344
{{- include "sourcegraph.databaseAuth" (list . "pgsql" "PG") | nindent 8 }}
4445
{{- include "sourcegraph.databaseAuth" (list . "codeIntelDB" "CODEINTEL_PG") | nindent 8 }}
4546
{{- include "sourcegraph.databaseAuth" (list . "codeInsightsDB" "CODEINSIGHTS_PG") | nindent 8 }}
47+
{{- end }}
4648
{{- range $name, $item := .Values.migrator.env }}
4749
- name: {{ $name }}
4850
{{- $item | toYaml | nindent 10 }}

0 commit comments

Comments
 (0)