Skip to content

Commit

Permalink
chore: use service discovery for btsys-api calls
Browse files Browse the repository at this point in the history
  • Loading branch information
MikAoJk committed Oct 10, 2024
1 parent 2f40c6c commit 18b3e40
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 7 deletions.
6 changes: 3 additions & 3 deletions naiserator-dev.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -58,9 +58,11 @@ spec:
namespace: flex
cluster: dev-gcp
- application: syfohelsenettproxy
- application: btsys-api
namespace: team-rocket
cluster: dev-gcp
external:
- host: pdl-api.dev-fss-pub.nais.io
- host: btsys-api.intern.dev.nav.no
kafka:
pool: nav-dev
secureLogs:
Expand All @@ -76,8 +78,6 @@ spec:
value: api://dev-fss.pdl.pdl-api/.default
- name: SYKETILLFELLE_SCOPE
value: api://dev-gcp.flex.flex-syketilfelle/.default
- name: LEGE_SUSPENSJON_PROXY_ENDPOINT_URL
value: https://btsys-api.intern.dev.nav.no
- name: LEGE_SUSPENSJON_PROXY_SCOPE
value: api://dev-gcp.team-rocket.btsys-api/.default
- name: SOURCE_VERSION_URL
Expand Down
6 changes: 3 additions & 3 deletions naiserator-prod.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -59,9 +59,11 @@ spec:
namespace: flex
cluster: prod-gcp
- application: syfohelsenettproxy
- application: btsys-api
namespace: team-rocket
cluster: prod-gcp
external:
- host: pdl-api.prod-fss-pub.nais.io
- host: btsys-api.intern.nav.no
kafka:
pool: nav-prod
secureLogs:
Expand All @@ -77,8 +79,6 @@ spec:
value: api://prod-fss.pdl.pdl-api/.default
- name: SYKETILLFELLE_SCOPE
value: api://prod-gcp.flex.flex-syketilfelle/.default
- name: LEGE_SUSPENSJON_PROXY_ENDPOINT_URL
value: https://btsys-api.intern.nav.no
- name: LEGE_SUSPENSJON_PROXY_SCOPE
value: api://prod-gcp.team-rocket.btsys-api/.default
- name: SOURCE_VERSION_URL
Expand Down
3 changes: 2 additions & 1 deletion src/main/kotlin/no/nav/syfo/EnvironmentVariables.kt
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@ package no.nav.syfo

data class EnvironmentVariables(
val applicationName: String = getEnvVar("NAIS_APP_NAME", "syfosmregler"),
val legeSuspensjonProxyEndpointURL: String = getEnvVar("LEGE_SUSPENSJON_PROXY_ENDPOINT_URL"),
val legeSuspensjonProxyEndpointURL: String =
getEnvVar("LEGE_SUSPENSJON_PROXY_ENDPOINT_URL", "http://btsys-api.team-rocket"),
val legeSuspensjonProxyScope: String = getEnvVar("LEGE_SUSPENSJON_PROXY_SCOPE"),
val syketilfelleEndpointURL: String =
getEnvVar("SYKETILLFELLE_ENDPOINT_URL", "http://flex-syketilfelle.flex"),
Expand Down

0 comments on commit 18b3e40

Please sign in to comment.