Skip to content

Commit

Permalink
chore: Workload profiles migration PNPG (#205)
Browse files Browse the repository at this point in the history
  • Loading branch information
manuraf authored Apr 2, 2024
1 parent 48c1fc1 commit df5cf8f
Show file tree
Hide file tree
Showing 10 changed files with 21 additions and 34 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/release_open_api.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: Swagger Detect Conflict and Update
on:
pull_request:
branches:
- release-dev
- main
types: [ opened, synchronize, reopened ]

permissions:
Expand All @@ -18,4 +18,4 @@ jobs:
uses: pagopa/selfcare-commons/github-actions-template/swagger-detect-conflict-spring@main
with:
path_openapi_docs: app/src/main/resources/swagger/api-docs.json
branch_ref: release-dev
branch_ref: main
2 changes: 1 addition & 1 deletion helm/pnpg/values-dev.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,4 +27,4 @@ configEnvSpecific:
JAVA_TOOL_OPTIONS: "-javaagent:/applicationinsights-agent.jar"
APPLICATIONINSIGHTS_INSTRUMENTATION_LOGGING_LEVEL: "OFF"
EXTERNAL_API_LOG_LEVEL: "DEBUG"
MS_ONBOARDING_URL: "https://selc-d-pnpg-onboarding-ms-ca.whiteglacier-211c4885.westeurope.azurecontainerapps.io"
MS_ONBOARDING_URL: "https://selc-d-pnpg-onboarding-ms-ca.yellowdesert-85d3792d.westeurope.azurecontainerapps.io"
2 changes: 1 addition & 1 deletion helm/pnpg/values-uat.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,4 +28,4 @@ configEnvSpecific:
JAVA_TOOL_OPTIONS: "-javaagent:/applicationinsights-agent.jar"
APPLICATIONINSIGHTS_INSTRUMENTATION_LOGGING_LEVEL: "OFF"
EXTERNAL_API_LOG_LEVEL: "DEBUG"
MS_ONBOARDING_URL: "https://selc-u-pnpg-onboarding-ms-ca.redground-be752d1f.westeurope.azurecontainerapps.io"
MS_ONBOARDING_URL: "https://selc-u-pnpg-onboarding-ms-ca.calmforest-ffe47bf1.westeurope.azurecontainerapps.io"
2 changes: 1 addition & 1 deletion helm/values-uat.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,4 +39,4 @@ configEnvSpecific:
JAVA_TOOL_OPTIONS: "-javaagent:/applicationinsights-agent.jar"
APPLICATIONINSIGHTS_INSTRUMENTATION_LOGGING_LEVEL: "OFF"
EXTERNAL_API_LOG_LEVEL: "DEBUG"
MS_ONBOARDING_URL: "https://selc-u-onboarding-ms-ca.calmsky-143987c1.westeurope.azurecontainerapps.io"
MS_ONBOARDING_URL: "https://selc-u-onboarding-ms-ca.agreeablesky-f71e6306.westeurope.azurecontainerapps.io"
14 changes: 6 additions & 8 deletions infra/container_apps/env/dev-pnpg/terraform.tfvars
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,6 @@ container_app = {
memory = "1Gi"
}

workload_profile_name = null

app_settings = [

{
Expand Down Expand Up @@ -64,31 +62,31 @@ app_settings = [
},
{
name = "MS_ONBOARDING_URL"
value = "https://selc-d-pnpg-onboarding-ms-ca.whiteglacier-211c4885.westeurope.azurecontainerapps.io"
value = "https://selc-d-pnpg-onboarding-ms-ca.yellowdesert-85d3792d.westeurope.azurecontainerapps.io"
},
{
name = "MS_CORE_URL"
value = "https://selc-d-pnpg-ms-core-ca.whiteglacier-211c4885.westeurope.azurecontainerapps.io"
value = "https://selc-d-pnpg-ms-core-ca.yellowdesert-85d3792d.westeurope.azurecontainerapps.io"
},
{
name = "USERVICE_PARTY_REGISTRY_PROXY_URL"
value = "https://selc-d-pnpg-party-reg-proxy-ca.whiteglacier-211c4885.westeurope.azurecontainerapps.io"
value = "https://selc-d-pnpg-party-reg-proxy-ca.yellowdesert-85d3792d.westeurope.azurecontainerapps.io"
},
{
name = "USERVICE_PARTY_PROCESS_URL"
value = "https://selc-d-pnpg-ms-core-ca.whiteglacier-211c4885.westeurope.azurecontainerapps.io"
value = "https://selc-d-pnpg-ms-core-ca.yellowdesert-85d3792d.westeurope.azurecontainerapps.io"
},
{
name = "MS_PRODUCT_URL"
value = "https://selc-d-pnpg-product-ca.whiteglacier-211c4885.westeurope.azurecontainerapps.io"
value = "https://selc-d-pnpg-product-ca.yellowdesert-85d3792d.westeurope.azurecontainerapps.io"
},
{
name = "USERVICE_USER_REGISTRY_URL"
value = "https://api.uat.pdv.pagopa.it/user-registry/v1"
},
{
name = "USERVICE_PARTY_MANAGEMENT_URL"
value = "https://selc-d-pnpg-ms-core-ca.whiteglacier-211c4885.westeurope.azurecontainerapps.io"
value = "https://selc-d-pnpg-ms-core-ca.yellowdesert-85d3792d.westeurope.azurecontainerapps.io"
}
]

Expand Down
2 changes: 0 additions & 2 deletions infra/container_apps/env/prod-pnpg/terraform.tfvars
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,6 @@ container_app = {
memory = "2.5Gi"
}

workload_profile_name = null

app_settings = [

{
Expand Down
12 changes: 5 additions & 7 deletions infra/container_apps/env/uat-pnpg/terraform.tfvars
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,6 @@ container_app = {
memory = "1Gi"
}

workload_profile_name = null

app_settings = [

{
Expand Down Expand Up @@ -51,19 +49,19 @@ app_settings = [
},
{
name = "MS_ONBOARDING_URL"
value = "https://selc-u-pnpg-onboarding-ms-ca.redground-be752d1f.westeurope.azurecontainerapps.io"
value = "https://selc-u-pnpg-onboarding-ms-ca.calmforest-ffe47bf1.westeurope.azurecontainerapps.io"
},
{
name = "MS_CORE_URL"
value = "https://selc-u-pnpg-ms-core-ca.redground-be752d1f.westeurope.azurecontainerapps.io"
value = "https://selc-u-pnpg-ms-core-ca.calmforest-ffe47bf1.westeurope.azurecontainerapps.io"
},
{
name = "USERVICE_PARTY_REGISTRY_PROXY_URL"
value = "https://selc-u-pnpg-party-reg-proxy-ca.redground-be752d1f.westeurope.azurecontainerapps.io"
value = "https://selc-u-pnpg-party-reg-proxy-ca.calmforest-ffe47bf1.westeurope.azurecontainerapps.io"
},
{
name = "USERVICE_PARTY_PROCESS_URL"
value = "https://selc-u-pnpg-ms-core-ca.redground-be752d1f.westeurope.azurecontainerapps.io"
value = "https://selc-u-pnpg-ms-core-ca.calmforest-ffe47bf1.westeurope.azurecontainerapps.io"
},
{
name = "MS_PRODUCT_URL"
Expand All @@ -75,7 +73,7 @@ app_settings = [
},
{
name = "USERVICE_PARTY_MANAGEMENT_URL"
value = "https://selc-u-pnpg-ms-core-ca.redground-be752d1f.westeurope.azurecontainerapps.io"
value = "https://selc-u-pnpg-ms-core-ca.calmforest-ffe47bf1.westeurope.azurecontainerapps.io"
}
]

Expand Down
10 changes: 5 additions & 5 deletions infra/container_apps/env/uat/terraform.tfvars
Original file line number Diff line number Diff line change
Expand Up @@ -49,19 +49,19 @@ app_settings = [
},
{
name = "MS_ONBOARDING_URL"
value = "https://selc-u-onboarding-ms-ca.calmsky-143987c1.westeurope.azurecontainerapps.io"
value = "https://selc-u-onboarding-ms-ca.agreeablesky-f71e6306.westeurope.azurecontainerapps.io"
},
{
name = "MS_CORE_URL"
value = "https://selc-u-ms-core-ca.calmsky-143987c1.westeurope.azurecontainerapps.io"
value = "https://selc-u-ms-core-ca.agreeablesky-f71e6306.westeurope.azurecontainerapps.io"
},
{
name = "USERVICE_PARTY_REGISTRY_PROXY_URL"
value = "https://selc-u-party-reg-proxy-ca.calmsky-143987c1.westeurope.azurecontainerapps.io"
value = "https://selc-u-party-reg-proxy-ca.agreeablesky-f71e6306.westeurope.azurecontainerapps.io"
},
{
name = "USERVICE_PARTY_PROCESS_URL"
value = "https://selc-u-ms-core-ca.calmsky-143987c1.westeurope.azurecontainerapps.io"
value = "https://selc-u-ms-core-ca.agreeablesky-f71e6306.westeurope.azurecontainerapps.io"
},
{
name = "MS_PRODUCT_URL"
Expand All @@ -73,7 +73,7 @@ app_settings = [
},
{
name = "USERVICE_PARTY_MANAGEMENT_URL"
value = "https://selc-u-ms-core-ca.calmsky-143987c1.westeurope.azurecontainerapps.io"
value = "https://selc-u-ms-core-ca.agreeablesky-f71e6306.westeurope.azurecontainerapps.io"
},
{
name = "STORAGE_CONTAINER"
Expand Down
1 change: 0 additions & 1 deletion infra/container_apps/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ module "container_app_ext_api_backend" {
image_tag = var.image_tag
app_settings = var.app_settings
secrets_names = var.secrets_names
workload_profile_name = var.workload_profile_name

tags = var.tags
}
6 changes: 0 additions & 6 deletions infra/container_apps/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -54,10 +54,4 @@ variable "app_settings" {
variable "secrets_names" {
type = map(string)
description = "KeyVault secrets to get values from"
}

variable "workload_profile_name" {
type = string
description = "Workload Profile name to use"
default = "Consumption"
}

0 comments on commit df5cf8f

Please sign in to comment.