From 1b748e885626aa7e38da3bf249fb5fd1d6768f40 Mon Sep 17 00:00:00 2001 From: pagopa-github-bot Date: Thu, 19 Dec 2024 09:49:58 +0000 Subject: [PATCH 1/6] Bump to version 0.11.70 --- helm/Chart.yaml | 4 ++-- helm/values-dev.yaml | 4 ++-- helm/values-prod.yaml | 4 ++-- helm/values-uat.yaml | 4 ++-- openapi/openapi_external.json | 2 +- openapi/openapi_external_massive.json | 2 +- openapi/openapi_internal.json | 2 +- openapi/openapi_internal_massive.json | 2 +- openapi/openapi_send.json | 2 +- pom.xml | 2 +- 10 files changed, 14 insertions(+), 14 deletions(-) diff --git a/helm/Chart.yaml b/helm/Chart.yaml index 888b6768..2129bce6 100644 --- a/helm/Chart.yaml +++ b/helm/Chart.yaml @@ -2,8 +2,8 @@ apiVersion: v2 name: pagopa-gpd-core description: micro-service to manage Creditor Institution debtor positions type: application -version: 0.185.0 -appVersion: 0.11.69 +version: 0.185.1 +appVersion: 0.11.70 dependencies: - name: microservice-chart version: 5.11.0 diff --git a/helm/values-dev.yaml b/helm/values-dev.yaml index 59ba9ba3..cc4758f8 100644 --- a/helm/values-dev.yaml +++ b/helm/values-dev.yaml @@ -138,7 +138,7 @@ microservice-chart: values: - user canaryDelivery: - create: false + create: true ingress: type: header headerName: X-Canary @@ -146,7 +146,7 @@ microservice-chart: weightPercent: 0 image: repository: ghcr.io/pagopa/pagopa-debt-position - tag: "0.11.66" + tag: "0.11.70" pullPolicy: Always envConfig: SPRING_DATASOURCE_URL: "jdbc:postgresql://gpd-db.d.internal.postgresql.pagopa.it:5432/apd?sslmode=require&prepareThreshold=0&tcpKeepAlive=true" diff --git a/helm/values-prod.yaml b/helm/values-prod.yaml index dcdeabec..54655fb1 100644 --- a/helm/values-prod.yaml +++ b/helm/values-prod.yaml @@ -147,7 +147,7 @@ microservice-chart: namespaces: ["gps"] topologyKey: topology.kubernetes.io/zone canaryDelivery: - create: false + create: true ingress: type: header headerName: X-Canary @@ -155,7 +155,7 @@ microservice-chart: weightPercent: 0 image: repository: ghcr.io/pagopa/pagopa-debt-position - tag: "0.11.66" + tag: "0.11.70" pullPolicy: Always envConfig: SPRING_DATASOURCE_URL: "jdbc:postgresql://gpd-db.p.internal.postgresql.pagopa.it:5432/apd?sslmode=require&prepareThreshold=0" diff --git a/helm/values-uat.yaml b/helm/values-uat.yaml index 0a5d128c..05befd51 100644 --- a/helm/values-uat.yaml +++ b/helm/values-uat.yaml @@ -138,7 +138,7 @@ microservice-chart: values: - user canaryDelivery: - create: false + create: true ingress: type: header headerName: X-Canary @@ -146,7 +146,7 @@ microservice-chart: weightPercent: 0 image: repository: ghcr.io/pagopa/pagopa-debt-position - tag: "0.11.66" + tag: "0.11.70" pullPolicy: Always envConfig: SPRING_DATASOURCE_URL: "jdbc:postgresql://gpd-db.u.internal.postgresql.pagopa.it:5432/apd?sslmode=require&prepareThreshold=0&tcpKeepAlive=true" diff --git a/openapi/openapi_external.json b/openapi/openapi_external.json index 5d85cd30..c452eec4 100644 --- a/openapi/openapi_external.json +++ b/openapi/openapi_external.json @@ -4,7 +4,7 @@ "title": "PagoPA API Debt Position", "description": "Progetto Gestione Posizioni Debitorie", "termsOfService": "https://www.pagopa.gov.it/", - "version": "0.11.69" + "version": "0.11.70" }, "servers": [ { diff --git a/openapi/openapi_external_massive.json b/openapi/openapi_external_massive.json index 4b2f5dcc..24ca81fa 100644 --- a/openapi/openapi_external_massive.json +++ b/openapi/openapi_external_massive.json @@ -4,7 +4,7 @@ "title": "PagoPA API Debt Position", "description": "Progetto Gestione Posizioni Debitorie", "termsOfService": "https://www.pagopa.gov.it/", - "version": "0.11.69" + "version": "0.11.70" }, "servers": [ { diff --git a/openapi/openapi_internal.json b/openapi/openapi_internal.json index 9166edd5..f6a510ab 100644 --- a/openapi/openapi_internal.json +++ b/openapi/openapi_internal.json @@ -4,7 +4,7 @@ "title": "PagoPA API Debt Position", "description": "Progetto Gestione Posizioni Debitorie", "termsOfService": "https://www.pagopa.gov.it/", - "version": "0.11.69" + "version": "0.11.70" }, "servers": [ { diff --git a/openapi/openapi_internal_massive.json b/openapi/openapi_internal_massive.json index f64ae6c7..f3ecdf4a 100644 --- a/openapi/openapi_internal_massive.json +++ b/openapi/openapi_internal_massive.json @@ -4,7 +4,7 @@ "title": "PagoPA API Debt Position", "description": "Progetto Gestione Posizioni Debitorie", "termsOfService": "https://www.pagopa.gov.it/", - "version": "0.11.69" + "version": "0.11.70" }, "servers": [ { diff --git a/openapi/openapi_send.json b/openapi/openapi_send.json index b0ca42bc..7c95eb31 100644 --- a/openapi/openapi_send.json +++ b/openapi/openapi_send.json @@ -4,7 +4,7 @@ "title": "PagoPA API Debt Position", "description": "Progetto Gestione Posizioni Debitorie", "termsOfService": "https://www.pagopa.gov.it/", - "version": "0.11.69" + "version": "0.11.70" }, "servers": [ { diff --git a/pom.xml b/pom.xml index df79c4fc..771d22d5 100644 --- a/pom.xml +++ b/pom.xml @@ -11,7 +11,7 @@ it.gov.pagopa.debtposition gpd - 0.11.69 + 0.11.70 Gestione Posizioni Debitorie Progetto Gestione Posizioni Debitorie From e214d20ef65c904c9eba686519fbbcfebbee41bb Mon Sep 17 00:00:00 2001 From: Jacopo Carlini Date: Thu, 19 Dec 2024 11:23:03 +0100 Subject: [PATCH 2/6] Added logic to deploy canary version with specified traffic weight. --- .github/workflows/deploy_with_github_runner.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/deploy_with_github_runner.yml b/.github/workflows/deploy_with_github_runner.yml index e3f38fcc..035a388a 100644 --- a/.github/workflows/deploy_with_github_runner.yml +++ b/.github/workflows/deploy_with_github_runner.yml @@ -90,10 +90,12 @@ jobs: - name: 🚀 Helm Deploy shell: bash - if: ${{ inputs.uninstall == 'false' }} + if: ${{ inputs.uninstall == false }} run: | echo "🚀 Launch helm deploy" + echo "${{ inputs.uninstall }}" + helm upgrade --namespace ${{ vars.NAMESPACE }} \ --install --values ./helm/values-${{ inputs.environment }}.yaml \ --set microservice-chart.canaryDelivery.ingress.weightPercent=${{ inputs.traffic_weight }} \ @@ -103,7 +105,7 @@ jobs: echo "✅Helm deployed" - name: 🗑Remove deployment - if: ${{ inputs.uninstall == 'true' }} + if: ${{ inputs.uninstall == true }} shell: bash run: | echo "🗑Launch helm uninstall" From decf3dea2569d324341427d2df592e47979cda35 Mon Sep 17 00:00:00 2001 From: pagopa-github-bot Date: Thu, 19 Dec 2024 10:24:15 +0000 Subject: [PATCH 3/6] Bump to version 0.11.71 --- helm/Chart.yaml | 4 ++-- helm/values-dev.yaml | 2 +- helm/values-prod.yaml | 2 +- helm/values-uat.yaml | 2 +- openapi/openapi_external.json | 2 +- openapi/openapi_external_massive.json | 2 +- openapi/openapi_internal.json | 2 +- openapi/openapi_internal_massive.json | 2 +- openapi/openapi_send.json | 2 +- pom.xml | 2 +- 10 files changed, 11 insertions(+), 11 deletions(-) diff --git a/helm/Chart.yaml b/helm/Chart.yaml index 2129bce6..10841919 100644 --- a/helm/Chart.yaml +++ b/helm/Chart.yaml @@ -2,8 +2,8 @@ apiVersion: v2 name: pagopa-gpd-core description: micro-service to manage Creditor Institution debtor positions type: application -version: 0.185.1 -appVersion: 0.11.70 +version: 0.185.2 +appVersion: 0.11.71 dependencies: - name: microservice-chart version: 5.11.0 diff --git a/helm/values-dev.yaml b/helm/values-dev.yaml index cc4758f8..850d30bb 100644 --- a/helm/values-dev.yaml +++ b/helm/values-dev.yaml @@ -146,7 +146,7 @@ microservice-chart: weightPercent: 0 image: repository: ghcr.io/pagopa/pagopa-debt-position - tag: "0.11.70" + tag: "0.11.71" pullPolicy: Always envConfig: SPRING_DATASOURCE_URL: "jdbc:postgresql://gpd-db.d.internal.postgresql.pagopa.it:5432/apd?sslmode=require&prepareThreshold=0&tcpKeepAlive=true" diff --git a/helm/values-prod.yaml b/helm/values-prod.yaml index 54655fb1..2cc0d587 100644 --- a/helm/values-prod.yaml +++ b/helm/values-prod.yaml @@ -155,7 +155,7 @@ microservice-chart: weightPercent: 0 image: repository: ghcr.io/pagopa/pagopa-debt-position - tag: "0.11.70" + tag: "0.11.71" pullPolicy: Always envConfig: SPRING_DATASOURCE_URL: "jdbc:postgresql://gpd-db.p.internal.postgresql.pagopa.it:5432/apd?sslmode=require&prepareThreshold=0" diff --git a/helm/values-uat.yaml b/helm/values-uat.yaml index 05befd51..5f81ef66 100644 --- a/helm/values-uat.yaml +++ b/helm/values-uat.yaml @@ -146,7 +146,7 @@ microservice-chart: weightPercent: 0 image: repository: ghcr.io/pagopa/pagopa-debt-position - tag: "0.11.70" + tag: "0.11.71" pullPolicy: Always envConfig: SPRING_DATASOURCE_URL: "jdbc:postgresql://gpd-db.u.internal.postgresql.pagopa.it:5432/apd?sslmode=require&prepareThreshold=0&tcpKeepAlive=true" diff --git a/openapi/openapi_external.json b/openapi/openapi_external.json index c452eec4..76f3bb2f 100644 --- a/openapi/openapi_external.json +++ b/openapi/openapi_external.json @@ -4,7 +4,7 @@ "title": "PagoPA API Debt Position", "description": "Progetto Gestione Posizioni Debitorie", "termsOfService": "https://www.pagopa.gov.it/", - "version": "0.11.70" + "version": "0.11.71" }, "servers": [ { diff --git a/openapi/openapi_external_massive.json b/openapi/openapi_external_massive.json index 24ca81fa..2c74714d 100644 --- a/openapi/openapi_external_massive.json +++ b/openapi/openapi_external_massive.json @@ -4,7 +4,7 @@ "title": "PagoPA API Debt Position", "description": "Progetto Gestione Posizioni Debitorie", "termsOfService": "https://www.pagopa.gov.it/", - "version": "0.11.70" + "version": "0.11.71" }, "servers": [ { diff --git a/openapi/openapi_internal.json b/openapi/openapi_internal.json index f6a510ab..f16d2552 100644 --- a/openapi/openapi_internal.json +++ b/openapi/openapi_internal.json @@ -4,7 +4,7 @@ "title": "PagoPA API Debt Position", "description": "Progetto Gestione Posizioni Debitorie", "termsOfService": "https://www.pagopa.gov.it/", - "version": "0.11.70" + "version": "0.11.71" }, "servers": [ { diff --git a/openapi/openapi_internal_massive.json b/openapi/openapi_internal_massive.json index f3ecdf4a..6c1f8bc8 100644 --- a/openapi/openapi_internal_massive.json +++ b/openapi/openapi_internal_massive.json @@ -4,7 +4,7 @@ "title": "PagoPA API Debt Position", "description": "Progetto Gestione Posizioni Debitorie", "termsOfService": "https://www.pagopa.gov.it/", - "version": "0.11.70" + "version": "0.11.71" }, "servers": [ { diff --git a/openapi/openapi_send.json b/openapi/openapi_send.json index 7c95eb31..0e1de7bf 100644 --- a/openapi/openapi_send.json +++ b/openapi/openapi_send.json @@ -4,7 +4,7 @@ "title": "PagoPA API Debt Position", "description": "Progetto Gestione Posizioni Debitorie", "termsOfService": "https://www.pagopa.gov.it/", - "version": "0.11.70" + "version": "0.11.71" }, "servers": [ { diff --git a/pom.xml b/pom.xml index 771d22d5..8630b404 100644 --- a/pom.xml +++ b/pom.xml @@ -11,7 +11,7 @@ it.gov.pagopa.debtposition gpd - 0.11.70 + 0.11.71 Gestione Posizioni Debitorie Progetto Gestione Posizioni Debitorie From 5da2350cb66d14300ca31528a63c49eaa47d3a69 Mon Sep 17 00:00:00 2001 From: Jacopo Carlini Date: Thu, 19 Dec 2024 11:51:58 +0100 Subject: [PATCH 4/6] feat(workflows): update uninstall_deploy and deploy_with_github_runner MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 🚀 Updated description for is_canary in uninstall_deploy to true by default. Removed unnecessary echo statement in deploy_with_github_runner. --- .github/workflows/deploy_with_github_runner.yml | 2 -- .github/workflows/unistall_deploy.yml | 4 ++-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/.github/workflows/deploy_with_github_runner.yml b/.github/workflows/deploy_with_github_runner.yml index 035a388a..99e62cef 100644 --- a/.github/workflows/deploy_with_github_runner.yml +++ b/.github/workflows/deploy_with_github_runner.yml @@ -94,8 +94,6 @@ jobs: run: | echo "🚀 Launch helm deploy" - echo "${{ inputs.uninstall }}" - helm upgrade --namespace ${{ vars.NAMESPACE }} \ --install --values ./helm/values-${{ inputs.environment }}.yaml \ --set microservice-chart.canaryDelivery.ingress.weightPercent=${{ inputs.traffic_weight }} \ diff --git a/.github/workflows/unistall_deploy.yml b/.github/workflows/unistall_deploy.yml index abf6ccf2..7431611a 100644 --- a/.github/workflows/unistall_deploy.yml +++ b/.github/workflows/unistall_deploy.yml @@ -15,8 +15,8 @@ on: - prod is_canary: type: boolean - description: To deploy a canary version on AKS - default: false + description: Uninstall the canary version on AKS + default: true permissions: From 68d10960e5122dc75d22aed290f9fbe262f8e731 Mon Sep 17 00:00:00 2001 From: Jacopo Carlini Date: Thu, 19 Dec 2024 12:48:22 +0100 Subject: [PATCH 5/6] build(deploy_with_github_runner.yml): fix canary create flag MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ✨ Mark the release as canary on AKS with the new is_canary flag. --- .github/workflows/deploy_with_github_runner.yml | 5 +++++ .github/workflows/release_deploy.yml | 1 + 2 files changed, 6 insertions(+) diff --git a/.github/workflows/deploy_with_github_runner.yml b/.github/workflows/deploy_with_github_runner.yml index 99e62cef..acf33e6f 100644 --- a/.github/workflows/deploy_with_github_runner.yml +++ b/.github/workflows/deploy_with_github_runner.yml @@ -25,6 +25,10 @@ on: type: string default: 0 description: 'The percentage of traffic to be sent to the canary version' + is_canary: + type: boolean + description: 'Mark the release as canary on AKS' + default: false env: APP_NAME: gpd-core @@ -97,6 +101,7 @@ jobs: helm upgrade --namespace ${{ vars.NAMESPACE }} \ --install --values ./helm/values-${{ inputs.environment }}.yaml \ --set microservice-chart.canaryDelivery.ingress.weightPercent=${{ inputs.traffic_weight }} \ + --set microservice-chart.canaryDelivery.create=${{ inputs.is_canary }} \ --wait --timeout 10m0s \ ${{ env.APP_NAME }}${{inputs.suffix_name}} ./helm diff --git a/.github/workflows/release_deploy.yml b/.github/workflows/release_deploy.yml index 19a85fd7..0d4d9fd3 100644 --- a/.github/workflows/release_deploy.yml +++ b/.github/workflows/release_deploy.yml @@ -158,6 +158,7 @@ jobs: with: environment: ${{ needs.setup.outputs.environment }} suffix_name: ${{ inputs.is_canary && '-canary' || '' }} + is_canary: ${{ inputs.is_canary }} traffic_weight: ${{ inputs.traffic_weight }} secrets: inherit From 60834d12415416951e7eb98cfdf9ca1ef7bee807 Mon Sep 17 00:00:00 2001 From: Jacopo Carlini Date: Thu, 19 Dec 2024 14:37:35 +0100 Subject: [PATCH 6/6] chore(helm): fixed version to stable 0.11.60 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ✨ Updated image tag to "0.11.60" for stable deployment. --- .github/workflows/deploy_with_github_runner.yml | 2 +- helm/values-prod.yaml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/deploy_with_github_runner.yml b/.github/workflows/deploy_with_github_runner.yml index acf33e6f..2b55d7d9 100644 --- a/.github/workflows/deploy_with_github_runner.yml +++ b/.github/workflows/deploy_with_github_runner.yml @@ -102,7 +102,7 @@ jobs: --install --values ./helm/values-${{ inputs.environment }}.yaml \ --set microservice-chart.canaryDelivery.ingress.weightPercent=${{ inputs.traffic_weight }} \ --set microservice-chart.canaryDelivery.create=${{ inputs.is_canary }} \ - --wait --timeout 10m0s \ + --wait --timeout 10m0s --debug \ ${{ env.APP_NAME }}${{inputs.suffix_name}} ./helm echo "✅Helm deployed" diff --git a/helm/values-prod.yaml b/helm/values-prod.yaml index 2cc0d587..1b5c3fda 100644 --- a/helm/values-prod.yaml +++ b/helm/values-prod.yaml @@ -4,7 +4,7 @@ microservice-chart: fullnameOverride: "" image: repository: ghcr.io/pagopa/pagopa-debt-position - tag: "0.11.69" + tag: "0.11.60" pullPolicy: Always livenessProbe: httpGet: