From 82ef277479db0aa9406289b78b9966b18d44293d Mon Sep 17 00:00:00 2001 From: "Ruben L. Mendoza" Date: Fri, 13 Sep 2024 09:38:53 -0500 Subject: [PATCH] TM upgrade - env vars (#339) * Update values for tm db * Update env vars for TM api --- .../tasking-manager-api/tm-deployment.yaml | 14 ++++++++++++++ osm-seed/values.yaml | 4 ++++ 2 files changed, 18 insertions(+) diff --git a/osm-seed/templates/tasking-manager-api/tm-deployment.yaml b/osm-seed/templates/tasking-manager-api/tm-deployment.yaml index f6f6306e..fed11a28 100644 --- a/osm-seed/templates/tasking-manager-api/tm-deployment.yaml +++ b/osm-seed/templates/tasking-manager-api/tm-deployment.yaml @@ -113,6 +113,20 @@ spec: value: {{ .Values.tmApi.env.TM_IMPORT_MAX_FILESIZE | default "1000000" | quote }} - name: TM_MAX_AOI_AREA value: {{ .Values.tmApi.env.TM_MAX_AOI_AREA | default "5000" | quote }} + + - name: TM_CLIENT_ID + value: {{ .Values.tmApi.env.TM_CLIENT_ID | quote }} + - name: TM_CLIENT_SECRET + value: {{ .Values.tmApi.env.TM_CLIENT_SECRET | quote }} + - name: TM_DEFAULT_CHANGESET_COMMENT + value: {{ .Values.tmApi.env.TM_DEFAULT_CHANGESET_COMMENT | quote }} + - name: TM_REDIRECT_URI + value: {{ .Values.tmApi.env.TM_REDIRECT_URI | quote }} + - name: TM_SCOPE + value: {{ .Values.tmApi.env.TM_SCOPE | quote }} + - name: TM_APP_API_VERSION + value: {{ .Values.tmApi.env.TM_APP_API_VERSION | quote }} + {{- if .Values.tmApi.nodeSelector.enabled }} nodeSelector: {{ .Values.tmApi.nodeSelector.label_key }} : {{ .Values.tmApi.nodeSelector.label_value }} diff --git a/osm-seed/values.yaml b/osm-seed/values.yaml index f3516517..9743490c 100644 --- a/osm-seed/values.yaml +++ b/osm-seed/values.yaml @@ -569,6 +569,10 @@ tmDb: POSTGRES_DB: tm POSTGRES_PASSWORD: tm POSTGRES_USER: postgres + persistenceDisk: + enabled: false + mountPath: /var/lib/postgresql/data + subPath: postgresql-db resources: enabled: false requests: