Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[NOD-866] Changed sources #14

Merged
merged 7 commits into from
May 10, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading