Skip to content

Commit

Permalink
Call btsys directly
Browse files Browse the repository at this point in the history
  • Loading branch information
MikAoJk committed Oct 12, 2023
1 parent 9198890 commit dda99f8
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 13 deletions.
9 changes: 3 additions & 6 deletions naiserator-dev.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,6 @@ spec:
enabled: true
path: /internal/prometheus
resources:
limits:
cpu: 500m
memory: 1Gi
requests:
cpu: 100m
memory: 512Mi
Expand All @@ -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:
Expand All @@ -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 }}
9 changes: 3 additions & 6 deletions naiserator-prod.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,6 @@ spec:
enabled: true
path: /internal/prometheus
resources:
limits:
cpu: 500m
memory: 1Gi
requests:
cpu: 300m
memory: 1Gi
Expand All @@ -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:
Expand All @@ -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 }}
2 changes: 1 addition & 1 deletion src/main/kotlin/no/nav/syfo/client/LegeSuspensjonClient.kt
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit dda99f8

Please sign in to comment.