From dda99f896b4fad237ca0d326fc9f9eafb2a0aef9 Mon Sep 17 00:00:00 2001 From: Joakim Taule Kartveit Date: Thu, 12 Oct 2023 11:08:25 +0200 Subject: [PATCH] Call btsys directly --- naiserator-dev.yaml | 9 +++------ naiserator-prod.yaml | 9 +++------ .../kotlin/no/nav/syfo/client/LegeSuspensjonClient.kt | 2 +- 3 files changed, 7 insertions(+), 13 deletions(-) diff --git a/naiserator-dev.yaml b/naiserator-dev.yaml index f333665c..8d3463db 100644 --- a/naiserator-dev.yaml +++ b/naiserator-dev.yaml @@ -27,9 +27,6 @@ spec: enabled: true path: /internal/prometheus resources: - limits: - cpu: 500m - memory: 1Gi requests: cpu: 100m memory: 512Mi @@ -55,7 +52,7 @@ spec: - application: syfohelsenettproxy external: - host: pdl-api.dev-fss-pub.nais.io - - host: smgcp-proxy.dev-fss-pub.nais.io + - host: btsys.dev-fss-pub.nais.io kafka: pool: nav-dev secureLogs: @@ -72,8 +69,8 @@ spec: - name: SYKETILLFELLE_SCOPE value: api://dev-gcp.flex.flex-syketilfelle/.default - name: LEGE_SUSPENSJON_PROXY_ENDPOINT_URL - value: https://smgcp-proxy.dev-fss-pub.nais.io + value: https://btsys.dev-fss-pub.nais.io - name: LEGE_SUSPENSJON_PROXY_SCOPE - value: api://dev-fss.teamsykmelding.smgcp-proxy/.default + value: api://dev-fss.team-rocket.btsys/.default - name: SOURCE_VERSION_URL value: {{ sourceVersionURL }} diff --git a/naiserator-prod.yaml b/naiserator-prod.yaml index 9f42bfdd..e995366f 100644 --- a/naiserator-prod.yaml +++ b/naiserator-prod.yaml @@ -27,9 +27,6 @@ spec: enabled: true path: /internal/prometheus resources: - limits: - cpu: 500m - memory: 1Gi requests: cpu: 300m memory: 1Gi @@ -54,7 +51,7 @@ spec: - application: syfohelsenettproxy external: - host: pdl-api.prod-fss-pub.nais.io - - host: smgcp-proxy.prod-fss-pub.nais.io + - host: btsys.prod-fss-pub.nais.io kafka: pool: nav-prod secureLogs: @@ -71,8 +68,8 @@ spec: - name: SYKETILLFELLE_SCOPE value: api://prod-gcp.flex.flex-syketilfelle/.default - name: LEGE_SUSPENSJON_PROXY_ENDPOINT_URL - value: https://smgcp-proxy.prod-fss-pub.nais.io + value: https://btsys.prod-fss-pub.nais.io - name: LEGE_SUSPENSJON_PROXY_SCOPE - value: api://prod-fss.teamsykmelding.smgcp-proxy/.default + value: api://prod-fss.team-rocket.btsys/.default - name: SOURCE_VERSION_URL value: {{ sourceVersionURL }} diff --git a/src/main/kotlin/no/nav/syfo/client/LegeSuspensjonClient.kt b/src/main/kotlin/no/nav/syfo/client/LegeSuspensjonClient.kt index ca6b7a49..993b99d4 100644 --- a/src/main/kotlin/no/nav/syfo/client/LegeSuspensjonClient.kt +++ b/src/main/kotlin/no/nav/syfo/client/LegeSuspensjonClient.kt @@ -29,7 +29,7 @@ class LegeSuspensjonClient( ): Suspendert { val httpResponse = httpClient - .get("$endpointUrl/btsys/api/v1/suspensjon/status") { + .get("$endpointUrl/api/v1/suspensjon/status") { accept(ContentType.Application.Json) val accessToken = azureAdV2Client.getAccessToken(scope) if (accessToken?.accessToken == null) {