Skip to content

Commit

Permalink
Merge pull request #797 from navikt/use_same_db_user
Browse files Browse the repository at this point in the history
bruk samme postgres bruker i bruker api writer
  • Loading branch information
kenglxn authored Nov 29, 2024
2 parents 23e69af + 503663d commit 48b827a
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion app/nais/dev-gcp-bruker-api-writer.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ spec:
kind: Project
role: roles/cloudsql.client
envFrom:
- secret: google-sql-notifikasjon-bruker-api-bruker-model-bruker-a319af7c
- secret: google-sql-notifikasjon-bruker-api
env:
- name: CLOUD_SQL_INSTANCE
value: fager-dev-24f2:europe-north1:notifikasjon-bruker-api
Expand Down
2 changes: 1 addition & 1 deletion app/nais/prod-gcp-bruker-api-writer.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ spec:
kind: Project
role: roles/cloudsql.client
envFrom:
- secret: google-sql-notifikasjon-bruker-api-bruker-model-bruker-a319af7c
- secret: google-sql-notifikasjon-bruker-api

---
# https://nav-it.slack.com/archives/C5KUST8N6/p1680085706741319
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ import no.nav.arbeidsgiver.notifikasjon.infrastruktur.kafka.NærmesteLederKafkaL
object BrukerWriter {
val databaseConfig = Database.config(
"bruker_model",
envPrefix = "DB_BRUKER_API_KAFKA_USER",
jdbcOpts = mapOf(
"socketFactory" to "com.google.cloud.sql.postgres.SocketFactory",
"cloudSqlInstance" to System.getenv("CLOUD_SQL_INSTANCE")!!
Expand Down

0 comments on commit 48b827a

Please sign in to comment.