diff --git a/helm/Chart.yaml b/helm/Chart.yaml index 0d1953e..3abf52f 100644 --- a/helm/Chart.yaml +++ b/helm/Chart.yaml @@ -2,8 +2,8 @@ apiVersion: v2 name: pagopa-node-cfg-sync description: Microservice that sync api-config-cache and standin configuration type: application -version: 0.82.0 -appVersion: 0.0.6 +version: 0.85.0 +appVersion: 0.0.6-3-NOD-866-dev-src dependencies: - name: microservice-chart version: 2.8.0 diff --git a/helm/values-dev.yaml b/helm/values-dev.yaml index 814a3b0..17423c6 100644 --- a/helm/values-dev.yaml +++ b/helm/values-dev.yaml @@ -4,7 +4,7 @@ microservice-chart: fullnameOverride: "" image: repository: ghcr.io/pagopa/pagopa-node-cfg-sync - tag: "0.0.6" + tag: "0.0.6-3-NOD-866-dev-src" pullPolicy: Always livenessProbe: httpGet: @@ -98,9 +98,9 @@ microservice-chart: RIVERSAMENTO_ENABLED: "true" RIVERSAMENTO_SOURCE: "nexi-oracle" RIVERSAMENTO_TARGET: "nexi-oracle" - CDI_PREFERENCES_VIEW: CDI_PREFERENCES_VIEW + CDI_PREFERENCES_VIEW: CDI_PREFERENCES_VIEW_MASTER CDI_PREFERENCES_TABLE: CDI_PREFERENCES_TABLE - ELENCO_SERVIZI_VIEW: ELENCO_SERVIZI_VIEW + ELENCO_SERVIZI_VIEW: ELENCO_SERVIZI_VIEW_MASTER ELENCO_SERVIZI_TABLE: ELENCO_SERVIZI_TABLE envSecret: # required diff --git a/helm/values-prod.yaml b/helm/values-prod.yaml index 04c8d05..eaf5548 100644 --- a/helm/values-prod.yaml +++ b/helm/values-prod.yaml @@ -4,7 +4,7 @@ microservice-chart: fullnameOverride: "" image: repository: ghcr.io/pagopa/pagopa-node-cfg-sync - tag: "0.0.6" + tag: "0.0.6-3-NOD-866-dev-src" pullPolicy: Always livenessProbe: httpGet: diff --git a/helm/values-uat.yaml b/helm/values-uat.yaml index 3123971..ccf4c06 100644 --- a/helm/values-uat.yaml +++ b/helm/values-uat.yaml @@ -4,7 +4,7 @@ microservice-chart: fullnameOverride: "" image: repository: ghcr.io/pagopa/pagopa-node-cfg-sync - tag: "0.0.6" + tag: "0.0.6-3-NOD-866-dev-src" pullPolicy: Always livenessProbe: httpGet: diff --git a/openapi/openapi.json b/openapi/openapi.json index 75e1b12..bc023a4 100644 --- a/openapi/openapi.json +++ b/openapi/openapi.json @@ -4,7 +4,7 @@ "title": "cfg-sync", "description": "Microservice to update configuration schema of Nodo dei Pagamenti", "termsOfService": "https://www.pagopa.gov.it/", - "version": "0.0.6" + "version": "0.0.6-3-NOD-866-dev-src" }, "servers": [ { diff --git a/pom.xml b/pom.xml index 40257a4..3dcb3ca 100644 --- a/pom.xml +++ b/pom.xml @@ -12,7 +12,7 @@ it.gov.pagopa.node cfg-sync - 0.0.6 + 0.0.6-3-NOD-866-dev-src Microservice to update configuration schema of Nodo dei Pagamenti diff --git a/src/main/java/it/gov/pagopa/node/cfgsync/Application.java b/src/main/java/it/gov/pagopa/node/cfgsync/Application.java index bd1547e..b044901 100644 --- a/src/main/java/it/gov/pagopa/node/cfgsync/Application.java +++ b/src/main/java/it/gov/pagopa/node/cfgsync/Application.java @@ -1,13 +1,27 @@ package it.gov.pagopa.node.cfgsync; import lombok.extern.slf4j.Slf4j; +import org.springframework.beans.factory.annotation.Value; import org.springframework.boot.SpringApplication; import org.springframework.boot.autoconfigure.SpringBootApplication; +import javax.annotation.PostConstruct; +import java.util.TimeZone; + @SpringBootApplication @Slf4j public class Application { + + @Value("${timezone}") + private String timezone; + public static void main(String[] args) { SpringApplication.run(Application.class, args); } + + @PostConstruct + public void init(){ + // Setting Spring Boot SetTimeZone + TimeZone.setDefault(TimeZone.getTimeZone(timezone)); + } } diff --git a/src/main/resources/application.yaml b/src/main/resources/application.yaml index 5e01ae4..5708f4b 100644 --- a/src/main/resources/application.yaml +++ b/src/main/resources/application.yaml @@ -87,7 +87,7 @@ stand-in-manager: enabled: 'true' sa-connection-string: ${STAND_IN_MANAGER_SA_CONNECTION_STRING} sa-name: standinevents - consumer-group: $Default + consumer-group: nodo-dei-pagamenti-stand-in-sync-rx consumer: ##permette di abilitare/disabilitare il consumer enabled: 'true' @@ -107,7 +107,7 @@ api-config-cache: enabled: 'true' sa-connection-string: ${API_CONFIG_CACHE_SA_CONNECTION_STRING} sa-name: cacheevents - consumer-group: $Default + consumer-group: nodo-dei-pagamenti-cache-sync-rx consumer: ##permette di abilitare/disabilitare il consumer enabled: 'true' @@ -121,6 +121,8 @@ riversamento: source: ${RIVERSAMENTO_SOURCE} target: ${RIVERSAMENTO_TARGET} +timezone: ${TIMEZONE:Europe/Rome} + logging: level: it: diff --git a/src/test/resources/application.yaml b/src/test/resources/application.yaml index 7b52e29..df57d1d 100644 --- a/src/test/resources/application.yaml +++ b/src/test/resources/application.yaml @@ -123,6 +123,8 @@ riversamento: source: pagopa-postgres target: pagopa-postgres +timezone: ${TIMEZONE:Europe/Rome} + logging: level: it: