Skip to content

Commit

Permalink
fix(user-notifications): Update env variable name (#14574)
Browse files Browse the repository at this point in the history
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
  • Loading branch information
thordurhhh and kodiakhq[bot] authored Apr 23, 2024
1 parent 20e39d7 commit 99918ef
Show file tree
Hide file tree
Showing 10 changed files with 6 additions and 14 deletions.
5 changes: 0 additions & 5 deletions apps/api/infra/api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -161,11 +161,6 @@ export const serviceSetup = (services: {
'http://web-services-auth-delegation-api.identity-server-delegation.svc.cluster.local',
prod: 'https://auth-delegation-api.internal.innskra.island.is',
},
USER_NOTIFICATION_CLIENT_URL: {
dev: 'http://user-notification-xrd.internal.dev01.devland.is',
staging: 'http://user-notification-xrd.internal.staging01.devland.is',
prod: 'https://user-notification-xrd.internal.island.is',
},
IDENTITY_SERVER_ISSUER_URL: {
dev: 'https://identity-server.dev01.devland.is',
staging: 'https://identity-server.staging01.devland.is',
Expand Down
2 changes: 1 addition & 1 deletion apps/services/auth/delegation-api/infra/delegation-api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ export const serviceSetup = (services: {
'clustercfg.general-redis-cluster-group.dnugi2.euw1.cache.amazonaws.com:6379',
]),
},
USER_NOTIFICATION_CLIENT_URL: {
USER_NOTIFICATION_API_URL: {
dev: ref((h) => `http://${h.svc(services.userNotification)}`),
staging: ref((h) => `http://${h.svc(services.userNotification)}`),
prod: 'https://user-notification.internal.island.is',
Expand Down
2 changes: 1 addition & 1 deletion charts/identity-server/values.dev.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -290,7 +290,7 @@ services-auth-delegation-api:
LOG_LEVEL: 'info'
NODE_OPTIONS: '--max-old-space-size=460'
SERVERSIDE_FEATURES_ON: ''
USER_NOTIFICATION_CLIENT_URL: 'http://web-user-notification.user-notification.svc.cluster.local'
USER_NOTIFICATION_API_URL: 'http://web-user-notification.user-notification.svc.cluster.local'
XROAD_BASE_PATH: 'http://securityserver.dev01.devland.is'
XROAD_BASE_PATH_WITH_ENV: 'http://securityserver.dev01.devland.is/r1/IS-DEV'
XROAD_CLIENT_ID: 'IS-DEV/GOV/10000/island-is-client'
Expand Down
2 changes: 1 addition & 1 deletion charts/identity-server/values.prod.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -287,7 +287,7 @@ services-auth-delegation-api:
LOG_LEVEL: 'info'
NODE_OPTIONS: '--max-old-space-size=460'
SERVERSIDE_FEATURES_ON: 'driving-license-use-v1-endpoint-for-v2-comms'
USER_NOTIFICATION_CLIENT_URL: 'https://user-notification.internal.island.is'
USER_NOTIFICATION_API_URL: 'https://user-notification.internal.island.is'
XROAD_BASE_PATH: 'http://securityserver.island.is'
XROAD_BASE_PATH_WITH_ENV: 'http://securityserver.island.is/r1/IS'
XROAD_CLIENT_ID: 'IS/GOV/5501692829/island-is-client'
Expand Down
2 changes: 1 addition & 1 deletion charts/identity-server/values.staging.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -290,7 +290,7 @@ services-auth-delegation-api:
LOG_LEVEL: 'info'
NODE_OPTIONS: '--max-old-space-size=460'
SERVERSIDE_FEATURES_ON: ''
USER_NOTIFICATION_CLIENT_URL: 'http://web-user-notification.user-notification.svc.cluster.local'
USER_NOTIFICATION_API_URL: 'http://web-user-notification.user-notification.svc.cluster.local'
XROAD_BASE_PATH: 'http://securityserver.staging01.devland.is'
XROAD_BASE_PATH_WITH_ENV: 'http://securityserver.staging01.devland.is/r1/IS-TEST'
XROAD_CLIENT_ID: 'IS-TEST/GOV/5501692829/island-is-client'
Expand Down
1 change: 0 additions & 1 deletion charts/islandis/values.dev.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -324,7 +324,6 @@ api:
TELL_US_A_STORY_EMAIL: '[email protected]'
UNIVERSITY_GATEWAY_API_URL: 'http://web-services-university-gateway.services-university-gateway.svc.cluster.local'
USER_NOTIFICATION_API_URL: 'http://web-user-notification.user-notification.svc.cluster.local'
USER_NOTIFICATION_CLIENT_URL: 'http://user-notification-xrd.internal.dev01.devland.is'
USER_PROFILE_CLIENT_URL: 'http://web-service-portal-api.service-portal.svc.cluster.local'
XROAD_ADR_MACHINE_LICENSE_PATH: 'IS-DEV/GOV/10013/Vinnueftirlitid-Protected/rettindi-token-v1'
XROAD_AIRCRAFT_REGISTRY_PATH: 'IS-DEV/GOV/10017/Samgongustofa-Protected/Loftfaraskra-V1'
Expand Down
1 change: 0 additions & 1 deletion charts/islandis/values.prod.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -314,7 +314,6 @@ api:
TELL_US_A_STORY_EMAIL: '[email protected]'
UNIVERSITY_GATEWAY_API_URL: 'http://web-services-university-gateway.services-university-gateway.svc.cluster.local'
USER_NOTIFICATION_API_URL: 'http://web-user-notification.user-notification.svc.cluster.local'
USER_NOTIFICATION_CLIENT_URL: 'https://user-notification-xrd.internal.island.is'
USER_PROFILE_CLIENT_URL: 'http://web-service-portal-api.service-portal.svc.cluster.local'
XROAD_ADR_MACHINE_LICENSE_PATH: 'IS/GOV/4201810439/Vinnueftirlitid-Protected/rettindi-token-v1'
XROAD_AIRCRAFT_REGISTRY_PATH: 'IS/GOV/5405131040/Samgongustofa-Protected/Loftfaraskra-V1'
Expand Down
1 change: 0 additions & 1 deletion charts/islandis/values.staging.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -324,7 +324,6 @@ api:
TELL_US_A_STORY_EMAIL: '[email protected]'
UNIVERSITY_GATEWAY_API_URL: 'http://web-services-university-gateway.services-university-gateway.svc.cluster.local'
USER_NOTIFICATION_API_URL: 'http://web-user-notification.user-notification.svc.cluster.local'
USER_NOTIFICATION_CLIENT_URL: 'http://user-notification-xrd.internal.staging01.devland.is'
USER_PROFILE_CLIENT_URL: 'http://web-service-portal-api.service-portal.svc.cluster.local'
XROAD_ADR_MACHINE_LICENSE_PATH: 'IS-TEST/GOV/4201810439/Vinnueftirlitid-Protected/rettindi-token-v1'
XROAD_AIRCRAFT_REGISTRY_PATH: 'IS-DEV/GOV/10017/Samgongustofa-Protected/Loftfaraskra-V1'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ export const DelegationApiUserSystemNotificationConfig = defineConfig({
load(env) {
return {
basePath: env.required(
'USER_NOTIFICATION_CLIENT_URL',
'USER_NOTIFICATION_API_URL',
'http://localhost:3333',
),
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ export const UserNotificationSystemClientConfig = defineConfig({
load(env) {
return {
basePath: env.required(
'USER_NOTIFICATION_CLIENT_URL',
'USER_NOTIFICATION_API_URL',
'http://localhost:3333',
),
}
Expand Down

0 comments on commit 99918ef

Please sign in to comment.