diff --git a/.gitignore b/.gitignore index 6fdf1348..21ef126e 100644 --- a/.gitignore +++ b/.gitignore @@ -12,3 +12,6 @@ src/generated # OS specific .DS_Store + +# Kotlin +.kotlin/ \ No newline at end of file diff --git a/naiserator-dev.yaml b/naiserator-dev.yaml index 3a5b18f6..3de9fd1c 100644 --- a/naiserator-dev.yaml +++ b/naiserator-dev.yaml @@ -86,8 +86,6 @@ spec: value: MQLS03 - name: MQ_CHANNEL_NAME value: Q1_SYFOSMINFOTRYGD - - name: NORG2_V1_ENDPOINT_URL - value: https://norg2.dev-fss-pub.nais.io/norg2/api/v1 - name: PDL_GRAPHQL_PATH value: https://pdl-api.dev-fss-pub.nais.io/graphql - name: PDL_SCOPE diff --git a/naiserator-prod.yaml b/naiserator-prod.yaml index 6a5af498..d26d4523 100644 --- a/naiserator-prod.yaml +++ b/naiserator-prod.yaml @@ -89,8 +89,6 @@ spec: value: MPLS03 - name: MQ_CHANNEL_NAME value: P_SYFOSMINFOTRYGD - - name: NORG2_V1_ENDPOINT_URL - value: https://norg2.prod-fss-pub.nais.io/norg2/api/v1 - name: PDL_GRAPHQL_PATH value: https://pdl-api.prod-fss-pub.nais.io/graphql - name: PDL_SCOPE diff --git a/src/main/kotlin/no/nav/syfo/Environment.kt b/src/main/kotlin/no/nav/syfo/Environment.kt index d8ef4a93..bc1ac889 100644 --- a/src/main/kotlin/no/nav/syfo/Environment.kt +++ b/src/main/kotlin/no/nav/syfo/Environment.kt @@ -8,7 +8,7 @@ data class Environment( val naiscluster: String = getEnvVar("NAIS_CLUSTER_NAME"), val infotrygdSporringQueue: String = getEnvVar("INFOTRYGD_SPORRING_QUEUE"), val infotrygdOppdateringQueue: String = getEnvVar("INFOTRYGD_OPPDATERING_QUEUE"), - val norg2V1EndpointURL: String = getEnvVar("NORG2_V1_ENDPOINT_URL"), + val norg2V1EndpointURL: String = getEnvVar("NORG2_V1_ENDPOINT_URL", "http://norg2/norg2/api/v1"), override val mqHostname: String = getEnvVar("MQ_HOST_NAME"), override val mqPort: Int = getEnvVar("MQ_PORT").toInt(), override val mqGatewayName: String = getEnvVar("MQ_GATEWAY_NAME"),