Skip to content

Commit 3afc936

Browse files
authored
Swap apps to managed postgres (#2631)
1 parent 6b273d4 commit 3afc936

1 file changed

Lines changed: 9 additions & 9 deletions

File tree

apps/infra/src/k8s/serviceDefinitions.ts

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ export const services: ServiceDefinition[] = [
8686
image: 'ghcr.io/bluedotimpact/bluedot-app-template:latest',
8787
env: [
8888
{ name: 'AIRTABLE_PERSONAL_ACCESS_TOKEN', valueFrom: envVarSources.airtablePat },
89-
{ name: 'PG_URL', valueFrom: getConnectionDetails(airtableSyncPg).uri },
89+
{ name: 'PG_URL', valueFrom: appPgConnectionDetails.uri },
9090
{ name: 'ALERTS_SLACK_CHANNEL_ID', value: ALERTS_SLACK_CHANNEL_ID },
9191
{ name: 'ALERTS_SLACK_BOT_TOKEN', valueFrom: envVarSources.alertsSlackBotToken },
9292
],
@@ -102,7 +102,7 @@ export const services: ServiceDefinition[] = [
102102
image: 'ghcr.io/bluedotimpact/bluedot-frontend-example:latest',
103103
env: [
104104
{ name: 'AIRTABLE_PERSONAL_ACCESS_TOKEN', valueFrom: envVarSources.airtablePat },
105-
{ name: 'PG_URL', valueFrom: getConnectionDetails(airtableSyncPg).uri },
105+
{ name: 'PG_URL', valueFrom: appPgConnectionDetails.uri },
106106
{ name: 'ALERTS_SLACK_CHANNEL_ID', value: ALERTS_SLACK_CHANNEL_ID },
107107
{ name: 'ALERTS_SLACK_BOT_TOKEN', valueFrom: envVarSources.alertsSlackBotToken },
108108
],
@@ -128,7 +128,7 @@ export const services: ServiceDefinition[] = [
128128
image: 'ghcr.io/bluedotimpact/bluedot-website:latest',
129129
env: [
130130
{ name: 'AIRTABLE_PERSONAL_ACCESS_TOKEN', valueFrom: envVarSources.airtablePat },
131-
{ name: 'PG_URL', valueFrom: getConnectionDetails(airtableSyncPg).uri },
131+
{ name: 'PG_URL', valueFrom: appPgConnectionDetails.uri },
132132
{ name: 'ALERTS_SLACK_CHANNEL_ID', value: ALERTS_SLACK_CHANNEL_ID },
133133
{ name: 'CLIENT_ERRORS_SLACK_CHANNEL_ID', value: CLIENT_ERRORS_SLACK_CHANNEL_ID },
134134
{ name: 'ALERTS_SLACK_BOT_TOKEN', valueFrom: envVarSources.alertsSlackBotToken },
@@ -153,7 +153,7 @@ export const services: ServiceDefinition[] = [
153153
image: 'ghcr.io/bluedotimpact/bluedot-website-production:latest',
154154
env: [
155155
{ name: 'AIRTABLE_PERSONAL_ACCESS_TOKEN', valueFrom: envVarSources.airtablePat },
156-
{ name: 'PG_URL', valueFrom: getConnectionDetails(airtableSyncPg).uri },
156+
{ name: 'PG_URL', valueFrom: appPgConnectionDetails.uri },
157157
{ name: 'ALERTS_SLACK_CHANNEL_ID', value: ALERTS_SLACK_CHANNEL_ID },
158158
{ name: 'CLIENT_ERRORS_SLACK_CHANNEL_ID', value: CLIENT_ERRORS_SLACK_CHANNEL_ID },
159159
{ name: 'ALERTS_SLACK_BOT_TOKEN', valueFrom: envVarSources.alertsSlackBotToken },
@@ -191,7 +191,7 @@ export const services: ServiceDefinition[] = [
191191
image: 'ghcr.io/bluedotimpact/bluedot-editor:latest',
192192
env: [
193193
{ name: 'AIRTABLE_PERSONAL_ACCESS_TOKEN', valueFrom: envVarSources.airtablePat },
194-
{ name: 'PG_URL', valueFrom: getConnectionDetails(airtableSyncPg).uri },
194+
{ name: 'PG_URL', valueFrom: appPgConnectionDetails.uri },
195195
{ name: 'ALERTS_SLACK_CHANNEL_ID', value: ALERTS_SLACK_CHANNEL_ID },
196196
{ name: 'ALERTS_SLACK_BOT_TOKEN', valueFrom: envVarSources.alertsSlackBotToken },
197197
{ name: 'WEBSITE_ASSETS_BUCKET_ACCESS_KEY_ID', value: websiteAssetsBucket.readWriteUser.name },
@@ -219,7 +219,7 @@ export const services: ServiceDefinition[] = [
219219
image: 'ghcr.io/bluedotimpact/bluedot-meet:latest',
220220
env: [
221221
{ name: 'AIRTABLE_PERSONAL_ACCESS_TOKEN', valueFrom: envVarSources.airtablePat },
222-
{ name: 'PG_URL', valueFrom: getConnectionDetails(airtableSyncPg).uri },
222+
{ name: 'PG_URL', valueFrom: appPgConnectionDetails.uri },
223223
{ name: 'NEXT_PUBLIC_ZOOM_CLIENT_ID', value: 'lX1NBglbQWO2ERYSS1xdfA' },
224224
{ name: 'ZOOM_CLIENT_SECRET', valueFrom: envVarSources.meetZoomClientSecret },
225225
{ name: 'ALERTS_SLACK_CHANNEL_ID', value: ALERTS_SLACK_CHANNEL_ID },
@@ -237,7 +237,7 @@ export const services: ServiceDefinition[] = [
237237
image: 'ghcr.io/bluedotimpact/bluedot-availability:latest',
238238
env: [
239239
{ name: 'AIRTABLE_PERSONAL_ACCESS_TOKEN', valueFrom: envVarSources.airtablePat },
240-
{ name: 'PG_URL', valueFrom: getConnectionDetails(airtableSyncPg).uri },
240+
{ name: 'PG_URL', valueFrom: appPgConnectionDetails.uri },
241241
{ name: 'ALERTS_SLACK_CHANNEL_ID', value: ALERTS_SLACK_CHANNEL_ID },
242242
{ name: 'ALERTS_SLACK_BOT_TOKEN', valueFrom: envVarSources.alertsSlackBotToken },
243243
],
@@ -268,7 +268,7 @@ export const services: ServiceDefinition[] = [
268268
image: 'ghcr.io/bluedotimpact/bluedot-course-demos:latest',
269269
env: [
270270
{ name: 'AIRTABLE_PERSONAL_ACCESS_TOKEN', valueFrom: envVarSources.airtablePat },
271-
{ name: 'PG_URL', valueFrom: getConnectionDetails(airtableSyncPg).uri },
271+
{ name: 'PG_URL', valueFrom: appPgConnectionDetails.uri },
272272
{ name: 'ANTHROPIC_API_KEY', valueFrom: envVarSources.anthropicApiKey },
273273
{ name: 'OPENAI_API_KEY', valueFrom: envVarSources.openaiApiKey },
274274
{ name: 'ALERTS_SLACK_CHANNEL_ID', value: ALERTS_SLACK_CHANNEL_ID },
@@ -286,7 +286,7 @@ export const services: ServiceDefinition[] = [
286286
image: 'ghcr.io/bluedotimpact/bluedot-speed-review:latest',
287287
env: [
288288
{ name: 'AIRTABLE_PERSONAL_ACCESS_TOKEN', valueFrom: envVarSources.airtablePat },
289-
{ name: 'PG_URL', valueFrom: getConnectionDetails(airtableSyncPg).uri },
289+
{ name: 'PG_URL', valueFrom: appPgConnectionDetails.uri },
290290
{ name: 'ALERTS_SLACK_CHANNEL_ID', value: ALERTS_SLACK_CHANNEL_ID },
291291
{ name: 'ALERTS_SLACK_BOT_TOKEN', valueFrom: envVarSources.alertsSlackBotToken },
292292
],

0 commit comments

Comments
 (0)