diff --git a/helm/Chart.yaml b/helm/Chart.yaml index b69df2e..6908ab8 100644 --- a/helm/Chart.yaml +++ b/helm/Chart.yaml @@ -1,6 +1,6 @@ apiVersion: v2 -name: pagopa-functions-template -description: Microservice description +name: pagopagpdingestionmanager +description: Microservice to tokenize eventhub msg type: application version: 0.0.1 appVersion: 0.0.1 diff --git a/helm/values-dev.yaml b/helm/values-dev.yaml index a39b257..3cb5819 100644 --- a/helm/values-dev.yaml +++ b/helm/values-dev.yaml @@ -1,9 +1,9 @@ microservice-chart: - namespace: "" # TODO + namespace: "gpd" nameOverride: "" fullnameOverride: "" image: - repository: pagopadcommonacr.azurecr.io/pagopa # TODO + repository: ghcr.io/pagopa/pagopa-gpd-ingestion-manager tag: "0.0.1" pullPolicy: Always # https://github.com/Azure/azure-functions-host/blob/dev/src/WebJobs.Script.WebHost/Controllers/HostController.cs @@ -29,8 +29,8 @@ microservice-chart: port: 80 ingress: create: true - host: "weudev..internal.dev.platform.pagopa.it" # TODO - path: /pagopa--service/(.*) # TODO + host: "weudev.gpd.internal.dev.platform.pagopa.it" + path: /pagopa-gpd-ingestion-manager/(.*) # serviceAccount: create: false annotations: {} @@ -61,12 +61,27 @@ microservice-chart: type: Utilization # Allowed types are 'Utilization' or 'AverageValue' value: "75" envConfig: - WEBSITE_SITE_NAME: "pagopa" # required to show cloud role name in application insights # TODO + WEBSITE_SITE_NAME: "pagopagpdingestionmanager" # required to show cloud role name in application insights FUNCTIONS_WORKER_RUNTIME: "java" + PDV_TOKENIZER_BASE_PATH: "https://api.uat.tokenizer.pdv.pagopa.it/tokenizer/v1" + PDV_TOKENIZER_INITIAL_INTERVAL: "200" + PDV_TOKENIZER_MULTIPLIER: "2.0" + PDV_TOKENIZER_RANDOMIZATION_FACTOR: "0.6" + PDV_TOKENIZER_MAX_RETRIES: "3" + ENABLE_ECS_CONSOLE: "true" + CONSOLE_LOG_THRESHOLD: "DEBUG" + CONSOLE_LOG_PATTERN: "%d{HH:mm:ss.SSS}[%thread]%-5level%logger{36}-%msg%n" + CONSOLE_LOG_CHARSET: "UTF-8" + envFieldRef: + APP_NAME: "metadata.labels['app.kubernetes.io/instance']" + APP_VERSION: "metadata.labels['app.kubernetes.io/version']" envSecret: - APPLICATIONINSIGHTS_CONNECTION_STRING: 'ai-d-connection-string' # TODO set in kv + APPLICATIONINSIGHTS_CONNECTION_STRING: 'ai-p-connection-string' # TODO set in kv + PAYMENT_POSITION_INPUT_EVENTHUB_CONN_STRING: "payment-position-topic-input-conn-string" + PAYMENT_POSITION_OUTPUT_EVENTHUB_CONN_STRING: "payment-position-topic-output-conn-string" + PDV_TOKENIZER_SUBSCRIPTION_KEY: "tokenizer-api-key" keyvault: - name: "pagopa-d--kv" # TODO + name: "pagopa-d-gps-kv" tenantId: "7788edaf-0346-4068-9d79-c868aed15b3d" nodeSelector: {} tolerations: [] diff --git a/helm/values-prod.yaml b/helm/values-prod.yaml index 83842f0..440d106 100644 --- a/helm/values-prod.yaml +++ b/helm/values-prod.yaml @@ -1,9 +1,9 @@ microservice-chart: - namespace: "" # TODO + namespace: "gpd" nameOverride: "" fullnameOverride: "" image: - repository: pagopapcommonacr.azurecr.io/pagopa # TODO + repository: ghcr.io/pagopa/pagopa-gpd-ingestion-manager tag: "0.0.1" pullPolicy: Always # https://github.com/Azure/azure-functions-host/blob/dev/src/WebJobs.Script.WebHost/Controllers/HostController.cs @@ -29,8 +29,8 @@ microservice-chart: port: 80 ingress: create: true - host: "weuprod..internal.platform.pagopa.it" # TODO - path: /pagopa--service/(.*) # TODO + host: "weuprod.gpd.internal.platform.pagopa.it" + path: /pagopa-gpd-ingestion-manager/(.*) serviceAccount: create: false annotations: {} @@ -61,12 +61,27 @@ microservice-chart: type: Utilization # Allowed types are 'Utilization' or 'AverageValue' value: "75" envConfig: - WEBSITE_SITE_NAME: "pagopa" # required to show cloud role name in application insights # TODO + WEBSITE_SITE_NAME: "pagopagpdingestionmanager" # required to show cloud role name in application insights FUNCTIONS_WORKER_RUNTIME: "java" + PDV_TOKENIZER_BASE_PATH: "https://api.tokenizer.pdv.pagopa.it/tokenizer/v1" + PDV_TOKENIZER_INITIAL_INTERVAL: "200" + PDV_TOKENIZER_MULTIPLIER: "2.0" + PDV_TOKENIZER_RANDOMIZATION_FACTOR: "0.6" + PDV_TOKENIZER_MAX_RETRIES: "3" + ENABLE_ECS_CONSOLE: "true" + CONSOLE_LOG_THRESHOLD: "DEBUG" + CONSOLE_LOG_PATTERN: "%d{HH:mm:ss.SSS}[%thread]%-5level%logger{36}-%msg%n" + CONSOLE_LOG_CHARSET: "UTF-8" + envFieldRef: + APP_NAME: "metadata.labels['app.kubernetes.io/instance']" + APP_VERSION: "metadata.labels['app.kubernetes.io/version']" envSecret: - APPLICATIONINSIGHTS_CONNECTION_STRING: 'ai-d-connection-string' # TODO set in kv + APPLICATIONINSIGHTS_CONNECTION_STRING: 'ai-p-connection-string' # TODO set in kv + PAYMENT_POSITION_INPUT_EVENTHUB_CONN_STRING: "payment-position-topic-input-conn-string" + PAYMENT_POSITION_OUTPUT_EVENTHUB_CONN_STRING: "payment-position-topic-output-conn-string" + PDV_TOKENIZER_SUBSCRIPTION_KEY: "tokenizer-api-key" keyvault: - name: "pagopa-p--kv" # TODO + name: "pagopa-p-gps-kv" tenantId: "7788edaf-0346-4068-9d79-c868aed15b3d" nodeSelector: {} tolerations: [] diff --git a/helm/values-uat.yaml b/helm/values-uat.yaml index 1a380e5..b69e83b 100644 --- a/helm/values-uat.yaml +++ b/helm/values-uat.yaml @@ -1,9 +1,9 @@ microservice-chart: - namespace: "" # TODO + namespace: "gpd" nameOverride: "" fullnameOverride: "" image: - repository: pagopaucommonacr.azurecr.io/pagopa # TODO + repository: ghcr.io/pagopa/pagopa-gpd-ingestion-manager tag: "0.0.1" pullPolicy: Always # https://github.com/Azure/azure-functions-host/blob/dev/src/WebJobs.Script.WebHost/Controllers/HostController.cs @@ -29,8 +29,8 @@ microservice-chart: port: 80 ingress: create: true - host: "weuuat..internal.uat.platform.pagopa.it" # TODO - path: /pagopa--service/(.*) # TODO + host: "weuuat.gpd.internal.uat.platform.pagopa.it" + path: /pagopa-gpd-ingestion-manager/(.*) serviceAccount: create: false annotations: {} @@ -61,12 +61,27 @@ microservice-chart: type: Utilization # Allowed types are 'Utilization' or 'AverageValue' value: "75" envConfig: - WEBSITE_SITE_NAME: "pagopa" # required to show cloud role name in application insights # TODO + WEBSITE_SITE_NAME: "pagopagpdingestionmanager" # required to show cloud role name in application insights FUNCTIONS_WORKER_RUNTIME: "java" + PDV_TOKENIZER_BASE_PATH: "https://api.uat.tokenizer.pdv.pagopa.it/tokenizer/v1" + PDV_TOKENIZER_INITIAL_INTERVAL: "200" + PDV_TOKENIZER_MULTIPLIER: "2.0" + PDV_TOKENIZER_RANDOMIZATION_FACTOR: "0.6" + PDV_TOKENIZER_MAX_RETRIES: "3" + ENABLE_ECS_CONSOLE: "true" + CONSOLE_LOG_THRESHOLD: "DEBUG" + CONSOLE_LOG_PATTERN: "%d{HH:mm:ss.SSS}[%thread]%-5level%logger{36}-%msg%n" + CONSOLE_LOG_CHARSET: "UTF-8" + envFieldRef: + APP_NAME: "metadata.labels['app.kubernetes.io/instance']" + APP_VERSION: "metadata.labels['app.kubernetes.io/version']" envSecret: - APPLICATIONINSIGHTS_CONNECTION_STRING: 'ai-d-connection-string' # TODO set in kv + APPLICATIONINSIGHTS_CONNECTION_STRING: 'ai-u-connection-string' # TODO set in kv + PAYMENT_POSITION_INPUT_EVENTHUB_CONN_STRING: "payment-position-topic-input-conn-string" + PAYMENT_POSITION_OUTPUT_EVENTHUB_CONN_STRING: "payment-position-topic-output-conn-string" + PDV_TOKENIZER_SUBSCRIPTION_KEY: "tokenizer-api-key" keyvault: - name: "pagopa-u--kv" # TODO + name: "pagopa-u-gps-kv" tenantId: "7788edaf-0346-4068-9d79-c868aed15b3d" nodeSelector: {} tolerations: []