Skip to content

Commit

Permalink
Merge pull request #14 from pagopa/NOD-866-dev-src
Browse files Browse the repository at this point in the history
[NOD-866] Changed sources
  • Loading branch information
aomegax authored May 10, 2024
2 parents 62a40d1 + ec97842 commit 60984b4
Show file tree
Hide file tree
Showing 9 changed files with 29 additions and 11 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-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
Expand Down
6 changes: 3 additions & 3 deletions helm/values-dev.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion helm/values-prod.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
2 changes: 1 addition & 1 deletion helm/values-uat.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
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": "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": [
{
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.node</groupId>
<artifactId>cfg-sync</artifactId>
<version>0.0.6</version>
<version>0.0.6-3-NOD-866-dev-src</version>
<description>Microservice to update configuration schema of Nodo dei Pagamenti</description>

<properties>
Expand Down
14 changes: 14 additions & 0 deletions src/main/java/it/gov/pagopa/node/cfgsync/Application.java
Original file line number Diff line number Diff line change
@@ -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));
}
}
6 changes: 4 additions & 2 deletions src/main/resources/application.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand All @@ -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'
Expand All @@ -121,6 +121,8 @@ riversamento:
source: ${RIVERSAMENTO_SOURCE}
target: ${RIVERSAMENTO_TARGET}

timezone: ${TIMEZONE:Europe/Rome}

logging:
level:
it:
Expand Down
2 changes: 2 additions & 0 deletions src/test/resources/application.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,8 @@ riversamento:
source: pagopa-postgres
target: pagopa-postgres

timezone: ${TIMEZONE:Europe/Rome}

logging:
level:
it:
Expand Down

0 comments on commit 60984b4

Please sign in to comment.