diff --git a/Pulumi.main.yaml b/Pulumi.main.yaml index 70632a4d..37e0d4eb 100644 --- a/Pulumi.main.yaml +++ b/Pulumi.main.yaml @@ -27,7 +27,7 @@ config: secure: AAABACw7CL2RfU5fi7GA3NnyLx9C32vQb+zggY+Xq2Wy5baH+KhutPkNa5ERghESrchdqh4DFoRX7oGnQglfOA== abax-vwfs:host: abax-vwfs.branches.no abax-vwfs:tag: main-3e4a710 - abax-vwfs:ui-image: europe-north1-docker.pkg.dev/branches-org-main/branches-org-main/abax-vwfs/ui + abax-vwfs:portal-image: europe-north1-docker.pkg.dev/branches-org-main/branches-org-main/abax-vwfs/portal abax-vwfs:vwfs-api-url: https://cons-fleetextapi.vwfs.se/api abax-vwfs:vwfs-auth-url: https://idp.cons-common.vwfs.se/ abax-vwfs:vwfs-client-id: f0004c6d-8801-43ee-b18d-d5d17c907182 diff --git a/resources/kubernetes/deployments/abax-vwfs.ts b/resources/kubernetes/deployments/abax-vwfs.ts index 554e4710..6af5b40a 100644 --- a/resources/kubernetes/deployments/abax-vwfs.ts +++ b/resources/kubernetes/deployments/abax-vwfs.ts @@ -1,13 +1,23 @@ import * as pulumi from '@pulumi/pulumi'; +import { StandardDatabase } from '../components/standard-database'; import { StandardDeployment } from '../components/standard-deployment'; import { provider } from '../provider'; const config = new pulumi.Config('abax-vwfs'); +export const abaxVwfsDb = new StandardDatabase( + 'abax-vwfs', + { + username: 'abaxvwfs', + database: 'abaxvwfs', + }, + { providers: [provider] }, +); + export const standardDeployment = new StandardDeployment( 'abax-vwfs', { - image: config.require('ui-image'), + image: config.require('portal-image'), tag: config.require('tag'), host: config.require('host'), secretEnv: { @@ -18,6 +28,7 @@ export const standardDeployment = new StandardDeployment( ABAX_CLIENT_ID: config.requireSecret('abax-client-id'), ABAX_CLIENT_SECRET: config.requireSecret('abax-client-secret'), }, + databaseDetails: abaxVwfsDb.databaseDetails, }, { providers: [provider] }, );