Skip to content

Commit

Permalink
Merge branch 'main' into fix-helm
Browse files Browse the repository at this point in the history
  • Loading branch information
andrea-deri authored Jul 15, 2024
2 parents 75b47cf + 95b59aa commit d2a927e
Show file tree
Hide file tree
Showing 8 changed files with 39 additions and 7 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-iuvgenerator
description: Microservice that permits to generate unique IUV codes for each creditor institution.
type: application
version: 0.9.0
appVersion: 0.2.6-1-fix-helm
version: 0.10.0
appVersion: 0.2.8
dependencies:
- name: microservice-chart
version: 3.0.0
Expand Down
2 changes: 1 addition & 1 deletion 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-iuvgenerator
tag: "0.2.6-1-fix-helm"
tag: "0.2.8"
pullPolicy: Always
livenessProbe:
httpGet:
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-iuvgenerator
tag: "0.2.6-1-fix-helm"
tag: "0.2.8"
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-iuvgenerator
tag: "0.2.6-1-fix-helm"
tag: "0.2.8"
pullPolicy: Always
livenessProbe:
httpGet:
Expand Down
18 changes: 18 additions & 0 deletions infra/04_apim_api.tf
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,24 @@ locals {
hostname = var.hostname
}

module "apim_iuvgenerator_product" {
source = "git::https://github.com/pagopa/terraform-azurerm-v3.git//api_management_product?ref=v6.6.0"

product_id = local.apim.product_id
display_name = "IUV Generator pagoPA"
description = "Prodotto Generatore IUV"

api_management_name = local.apim.name
resource_group_name = local.apim.rg

published = true
subscription_required = true
approval_required = false
subscriptions_limit = 1000

policy_xml = file("./policy/api_product/_base_policy.xml")
}

resource "azurerm_api_management_group" "api_group" {
name = local.apim.product_id
resource_group_name = local.apim.rg
Expand Down
14 changes: 14 additions & 0 deletions infra/policy/api_product/_base_policy.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
<policies>
<inbound>
<base />
</inbound>
<backend>
<base />
</backend>
<outbound>
<base />
</outbound>
<on-error>
<base />
</on-error>
</policies>
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 @@
"description": "A service that permits to generate unique IUV codes for each creditor institution.\n\n**STANDARD ERRORS:**\nNAME | CODE | DESCRIPTION\n- | - | -\n**IUVG-1000** | *GENERIC_ERROR* | Error while generating IUV. *...error description...*\n**IUVG-1001** | *VALIDATION_ERROR* | Error while validating IUV generation request. *...error description...*\n**IUVG-1101** | *GENERATION_MAX_RETRIES_REACHED* | Error while generating IUV. Reached the maximum number of internal automatic attempts [*...content...*] to generate a unique IUV for creditor institution [*...content...*]. Please, try again later.\n**IUVG-1102** | *GENERATION_AUXDIGIT_ALGORITHM_INVALID_PATTERN* | Error while generating IUV. The IUV code's section generated by timestamp in milliseconds is not correctly composited of 13 digits.\n",
"termsOfService": "https://www.pagopa.gov.it/",
"title": "IUV Generator",
"version": "0.2.6-1-fix-helm"
"version": "0.2.8"
},
"servers": [
{
Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@

<groupId>it.gov.pagopa</groupId>
<artifactId>iuvgenerator</artifactId>
<version>0.2.6-1-fix-helm</version>
<version>0.2.8</version>
<name>pagoPA IUV Generator</name>
<description>A service that permits to generate unique IUV codes for each creditor institution.</description>

Expand Down

0 comments on commit d2a927e

Please sign in to comment.