Skip to content

Commit

Permalink
Merge pull request #45 from pagopa/switch-backend-url
Browse files Browse the repository at this point in the history
switch url backend
  • Loading branch information
jacopocarlini authored May 27, 2024
2 parents 65f5d41 + 8b8f0a0 commit dd1e613
Show file tree
Hide file tree
Showing 7 changed files with 13 additions and 15 deletions.
4 changes: 2 additions & 2 deletions helm/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ apiVersion: v2
name: pagopa-api-config-selfcare-integration
description: Microservice that manages requests from selfcare
type: application
version: 1.75.0
appVersion: 1.10.7
version: 1.79.0
appVersion: 1.10.7-4-switch-backend-url
dependencies:
- name: microservice-chart
version: 2.8.0
Expand Down
4 changes: 2 additions & 2 deletions helm/values-dev.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ microservice-chart: &microservice-chart
envSecret: {}
image:
repository: ghcr.io/pagopa/pagopa-api-config-selfcare-integration
tag: "1.10.7"
tag: "1.10.7-4-switch-backend-url"
pullPolicy: Always
livenessProbe:
httpGet:
Expand Down Expand Up @@ -140,7 +140,7 @@ postgresql:
!!merge <<: *envConfig
WEBSITE_SITE_NAME: 'pagopaapiconfigselfcareintegration' # required to show cloud role name in application insights
APPLICATIONINSIGHTS_ROLE_NAME: "pagopa-api-config-selfcare-integration"
SPRING_DATASOURCE_URL: 'jdbc:postgresql://pagopa-d-weu-nodo-flexible-postgresql.postgres.database.azure.com:6432/nodo?sslmode=require&prepareThreshold=0&currentSchema=cfg'
SPRING_DATASOURCE_URL: "jdbc:postgresql://nodo-db.d.internal.postgresql.pagopa.it:6432/nodo?sslmode=require&prepareThreshold=0&currentSchema=cfg"
SPRING_DATASOURCE_USERNAME: 'cfg'
SPRING_DATASOURCE_DRIVER: 'org.postgresql.Driver'
SPRING_JPA_DB_PLATFORM: 'org.hibernate.dialect.PostgreSQLDialect'
Expand Down
7 changes: 3 additions & 4 deletions helm/values-prod.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ microservice-chart: &microservice-chart
envSecret: {}
image:
repository: ghcr.io/pagopa/pagopa-api-config-selfcare-integration
tag: "1.10.7"
tag: "1.10.7-4-switch-backend-url"
pullPolicy: Always
livenessProbe:
httpGet:
Expand Down Expand Up @@ -149,7 +149,7 @@ postgresql:
!!merge <<: *envConfig
WEBSITE_SITE_NAME: 'pagopaapiconfigselfcareintegration' # required to show cloud role name in application insights
APPLICATIONINSIGHTS_ROLE_NAME: "pagopa-api-config-selfcare-integration"
SPRING_DATASOURCE_URL: 'jdbc:postgresql://pagopa-p-weu-nodo-flexible-postgresql.postgres.database.azure.com:6432/nodo?sslmode=require&prepareThreshold=0&currentSchema=cfg'
SPRING_DATASOURCE_URL: "jdbc:postgresql://nodo-db.p.internal.postgresql.pagopa.it:6432/nodo?sslmode=require&prepareThreshold=0&currentSchema=cfg"
SPRING_DATASOURCE_USERNAME: 'cfg'
SPRING_DATASOURCE_DRIVER: 'org.postgresql.Driver'
SPRING_JPA_DB_PLATFORM: 'org.hibernate.dialect.PostgreSQLDialect'
Expand All @@ -163,8 +163,7 @@ oracle:
!!merge <<: *microservice-chart
ingress:
!!merge <<: *ingress
# path: /pagopa-api-config-selfcare-integration/o/(.*)
path: /pagopa-api-config-selfcare-integration/(.*)
path: /pagopa-api-config-selfcare-integration/o/(.*)
envConfig:
!!merge <<: *envConfig
WEBSITE_SITE_NAME: 'pagopaapiconfigselfcareintegration' # required to show cloud role name in application insights
Expand Down
7 changes: 3 additions & 4 deletions helm/values-uat.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ microservice-chart: &microservice-chart
envSecret: {}
image:
repository: ghcr.io/pagopa/pagopa-api-config-selfcare-integration
tag: "1.10.7"
tag: "1.10.7-4-switch-backend-url"
pullPolicy: Always
livenessProbe:
httpGet:
Expand Down Expand Up @@ -140,7 +140,7 @@ postgresql:
!!merge <<: *envConfig
WEBSITE_SITE_NAME: 'pagopaapiconfigselfcareintegration' # required to show cloud role name in application insights
APPLICATIONINSIGHTS_ROLE_NAME: "pagopa-api-config-selfcare-integration"
SPRING_DATASOURCE_URL: 'jdbc:postgresql://pagopa-u-weu-nodo-flexible-postgresql.postgres.database.azure.com:6432/nodo?sslmode=require&prepareThreshold=0&currentSchema=cfg'
SPRING_DATASOURCE_URL: "jdbc:postgresql://nodo-db.u.internal.postgresql.pagopa.it:6432/nodo?sslmode=require&prepareThreshold=0&currentSchema=cfg"
SPRING_DATASOURCE_USERNAME: 'cfg'
SPRING_DATASOURCE_DRIVER: 'org.postgresql.Driver'
SPRING_JPA_DB_PLATFORM: 'org.hibernate.dialect.PostgreSQLDialect'
Expand All @@ -154,8 +154,7 @@ oracle:
!!merge <<: *microservice-chart
ingress:
!!merge <<: *ingress
# path: /pagopa-api-config-selfcare-integration/o/(.*)
path: /pagopa-api-config-selfcare-integration/(.*)
path: /pagopa-api-config-selfcare-integration/o/(.*)
envConfig:
!!merge <<: *envConfig
WEBSITE_SITE_NAME: 'pagopaapiconfigselfcareintegration' # required to show cloud role name in application insights
Expand Down
2 changes: 1 addition & 1 deletion infra/policy/_base_policy.xml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<policies>
<inbound>
<base />
<set-backend-service base-url="https://${hostname}/pagopa-api-config-selfcare-integration" />
<set-backend-service base-url="https://${hostname}/{{apicfg-selfcare-integ-service-path}}" />
</inbound>
<outbound>
<base />
Expand Down
2 changes: 1 addition & 1 deletion openapi/openapi.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"title": "API-Config - SelfCare Integration",
"description": "Spring application exposes APIs for SelfCare",
"termsOfService": "https://www.pagopa.gov.it/",
"version": "1.10.7"
"version": "1.10.7-4-switch-backend-url"
},
"servers": [
{
Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@

<groupId>it.gov.pagopa.api-config</groupId>
<artifactId>selfcareintegration</artifactId>
<version>1.10.7</version>
<version>1.10.7-4-switch-backend-url</version>
<name>API-Config - SelfCare Integration</name>
<description>Spring application exposes APIs for SelfCare</description>

Expand Down

0 comments on commit dd1e613

Please sign in to comment.