File tree Expand file tree Collapse file tree 3 files changed +11
-4
lines changed
templates/tasking-manager-api Expand file tree Collapse file tree 3 files changed +11
-4
lines changed Original file line number Diff line number Diff line change 9
9
POSTGRES_PASSWORD : {{ quote .Values.tmDb.env.POSTGRES_PASSWORD | default "" }}
10
10
POSTGRES_USER : {{ quote .Values.tmDb.env.POSTGRES_USER | default "" }}
11
11
POSTGRES_PORT : " 5432"
12
- TM_DB : {{ quote (printf "postgresql://%s:%s@%s-tasking-manager-db/%s" .Values.tmDb.env.POSTGRES_USER .Values.tmDb.env.POSTGRES_PASSWORD .Release.Name .Values.tmDb.env.POSTGRES_DB) }}
12
+ TM_DB : {{ quote (printf "postgresql+asyncpg ://%s:%s@%s-tasking-manager-db/%s" .Values.tmDb.env.POSTGRES_USER .Values.tmDb.env.POSTGRES_PASSWORD .Release.Name .Values.tmDb.env.POSTGRES_DB) }}
13
13
TM_ORG_NAME : {{ quote .Values.tmApi.env.TM_ORG_NAME | default "" }}
14
14
TM_ORG_CODE : {{ quote .Values.tmApi.env.TM_ORG_CODE | default "" }}
15
15
TM_ORG_URL : {{ quote .Values.tmApi.env.TM_ORG_URL | default "" }}
44
44
TM_REDIRECT_URI : {{ quote .Values.tmApi.env.TM_REDIRECT_URI | default "" }}
45
45
TM_SCOPE : {{ quote .Values.tmApi.env.TM_SCOPE | default "" }}
46
46
TM_APP_API_VERSION : {{ quote .Values.tmApi.env.TM_APP_API_VERSION | default "v2" }}
47
+ OHSOME_STATS_TOKEN : {{ quote .Values.tmApi.env.OHSOME_STATS_TOKEN }}
48
+ POSTGRES_TEST_DB : {{ quote .Values.tmApi.env.POSTGRES_TEST_DB }}
47
49
{{- end }}
Original file line number Diff line number Diff line change 26
26
initContainers :
27
27
- name : db-upgrade
28
28
image : " {{ .Values.tmApi.image.name }}:{{ .Values.tmApi.image.tag }}"
29
- # command: ["flask", "db", "upgrade"]
30
- command : ["alembic", "upgrade", "head"]
31
- workingDir : /usr/src/app
29
+ command :
30
+ - alembic
31
+ - -c
32
+ - /usr/src/app/migrations/alembic.ini
33
+ - upgrade
34
+ - head
32
35
envFrom :
33
36
- configMapRef :
34
37
name : {{ .Release.Name }}-tm-common-env
Original file line number Diff line number Diff line change @@ -726,6 +726,8 @@ tmApi:
726
726
TM_DEFAULT_LOCALE : " en"
727
727
TM_APP_API_URL : " "
728
728
TM_APP_BASE_URL : " "
729
+ OHSOME_STATS_TOKEN : " dummy-token-for-migrations"
730
+ POSTGRES_TEST_DB : " postgresql://user:pass@db:5432/test_db"
729
731
resources :
730
732
enabled : false
731
733
requests :
You can’t perform that action at this time.
0 commit comments