Skip to content

Commit

Permalink
Merge branch 'main' into PAGOPA-2483-v3-DB-debtor-fields
Browse files Browse the repository at this point in the history
  • Loading branch information
alessio-acitelli authored Dec 19, 2024
2 parents a53c9eb + 60834d1 commit e7f8914
Show file tree
Hide file tree
Showing 13 changed files with 26 additions and 20 deletions.
11 changes: 8 additions & 3 deletions .github/workflows/deploy_with_github_runner.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -90,20 +94,21 @@ jobs:
- name: 🚀 Helm Deploy
shell: bash
if: ${{ inputs.uninstall == 'false' }}
if: ${{ inputs.uninstall == false }}
run: |
echo "🚀 Launch helm deploy"
helm upgrade --namespace ${{ vars.NAMESPACE }} \
--install --values ./helm/values-${{ inputs.environment }}.yaml \
--set microservice-chart.canaryDelivery.ingress.weightPercent=${{ inputs.traffic_weight }} \
--wait --timeout 10m0s \
--set microservice-chart.canaryDelivery.create=${{ inputs.is_canary }} \
--wait --timeout 10m0s --debug \
${{ env.APP_NAME }}${{inputs.suffix_name}} ./helm
echo "✅Helm deployed"
- name: 🗑Remove deployment
if: ${{ inputs.uninstall == 'true' }}
if: ${{ inputs.uninstall == true }}
shell: bash
run: |
echo "🗑Launch helm uninstall"
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/release_deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/unistall_deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
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-gpd-core
description: micro-service to manage Creditor Institution debtor positions
type: application
version: 0.185.0
appVersion: 0.11.69
version: 0.185.2
appVersion: 0.11.71
dependencies:
- name: microservice-chart
version: 5.11.0
Expand Down
4 changes: 2 additions & 2 deletions helm/values-dev.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -138,15 +138,15 @@ microservice-chart:
values:
- user
canaryDelivery:
create: false
create: true
ingress:
type: header
headerName: X-Canary
headerValue: canary
weightPercent: 0
image:
repository: ghcr.io/pagopa/pagopa-debt-position
tag: "0.11.66"
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"
Expand Down
6 changes: 3 additions & 3 deletions 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-debt-position
tag: "0.11.69"
tag: "0.11.60"
pullPolicy: Always
livenessProbe:
httpGet:
Expand Down Expand Up @@ -147,15 +147,15 @@ microservice-chart:
namespaces: ["gps"]
topologyKey: topology.kubernetes.io/zone
canaryDelivery:
create: false
create: true
ingress:
type: header
headerName: X-Canary
headerValue: canary
weightPercent: 0
image:
repository: ghcr.io/pagopa/pagopa-debt-position
tag: "0.11.66"
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"
Expand Down
4 changes: 2 additions & 2 deletions helm/values-uat.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -138,15 +138,15 @@ microservice-chart:
values:
- user
canaryDelivery:
create: false
create: true
ingress:
type: header
headerName: X-Canary
headerValue: canary
weightPercent: 0
image:
repository: ghcr.io/pagopa/pagopa-debt-position
tag: "0.11.66"
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"
Expand Down
2 changes: 1 addition & 1 deletion openapi/openapi_external.json
Original file line number Diff line number Diff line change
Expand Up @@ -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.71"
},
"servers": [
{
Expand Down
2 changes: 1 addition & 1 deletion openapi/openapi_external_massive.json
Original file line number Diff line number Diff line change
Expand Up @@ -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.71"
},
"servers": [
{
Expand Down
2 changes: 1 addition & 1 deletion openapi/openapi_internal.json
Original file line number Diff line number Diff line change
Expand Up @@ -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.71"
},
"servers": [
{
Expand Down
2 changes: 1 addition & 1 deletion openapi/openapi_internal_massive.json
Original file line number Diff line number Diff line change
Expand Up @@ -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.71"
},
"servers": [
{
Expand Down
2 changes: 1 addition & 1 deletion openapi/openapi_send.json
Original file line number Diff line number Diff line change
Expand Up @@ -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.71"
},
"servers": [
{
Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
</parent>
<groupId>it.gov.pagopa.debtposition</groupId>
<artifactId>gpd</artifactId>
<version>0.11.69</version>
<version>0.11.71</version>
<name>Gestione Posizioni Debitorie</name>
<description>Progetto Gestione Posizioni Debitorie</description>
<properties>
Expand Down

0 comments on commit e7f8914

Please sign in to comment.