Skip to content

Commit

Permalink
merge main
Browse files Browse the repository at this point in the history
  • Loading branch information
lucaconsalvi committed Nov 26, 2024
2 parents 8957734 + 85aafae commit 89b0bea
Show file tree
Hide file tree
Showing 10 changed files with 26 additions and 16 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/post-merge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,8 @@ jobs:
#
- name: Checkout the source code
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # 4.2.2
with:
token: ${{ secrets.GIT_PAT }}

#
# RELEASE CANDIDATE - Update of gradle.properties with the RC new version.
Expand Down
8 changes: 8 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ repositories {

ext {
set('springCloudAzureVersion', "5.18.0")
set('otelInstrumentationVersion','2.10.0')
}

dependencies {
Expand All @@ -41,6 +42,12 @@ dependencies {
implementation("org.openapitools:jackson-databind-nullable:0.2.6")
implementation("com.fasterxml.jackson.datatype:jackson-datatype-jsr310")
implementation("org.springframework.boot:spring-boot-starter-validation")

// opentelemetry
// implementation("io.opentelemetry.instrumentation:opentelemetry-spring-boot-starter")
// provides the same functionality of spring-boot-starter but configure the azure exporter
implementation("com.azure.spring:spring-cloud-azure-starter-monitor:1.0.0-beta.6")

testImplementation 'org.springframework.boot:spring-boot-starter-test'
testImplementation 'org.springframework.security:spring-security-test'
testImplementation 'io.projectreactor:reactor-test'
Expand All @@ -52,6 +59,7 @@ dependencies {
dependencyManagement {
imports {
mavenBom "com.azure.spring:spring-cloud-azure-dependencies:${springCloudAzureVersion}"
mavenBom "io.opentelemetry.instrumentation:opentelemetry-instrumentation-bom:${otelInstrumentationVersion}"
}
}

Expand Down
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
@@ -1 +1 @@
version=1.1.0
version=1.2.0
1 change: 0 additions & 1 deletion src/main/resources/application.properties
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
logging.level.root=INFO


spring.application.name=rtp-activator

# enable spring boot actuator health endpoint
Expand Down
1 change: 1 addition & 0 deletions src/main/terraform/container_app.tf
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ resource "azurerm_container_app" "rtp-activator" {
value = "${data.azurerm_user_assigned_identity.rtp-activator.client_id}"
}


dynamic "secret" {
for_each = var.rtp_environment_secrets
content {
Expand Down
4 changes: 2 additions & 2 deletions src/main/terraform/data.tf
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,11 @@ data "azurerm_user_assigned_identity" "rtp-activator" {
}



# ------------------------------------------------------------------------------
# General purpose key vault used to protect secrets.
# ------------------------------------------------------------------------------
data "azurerm_key_vault" "rtp-kv" {
name = local.rtp_kv_name
resource_group_name = local.rtp_kv_resource_group_name
}
}

7 changes: 4 additions & 3 deletions src/main/terraform/env/cstar-d-weu-rtp/terraform.tfvars
Original file line number Diff line number Diff line change
Expand Up @@ -43,12 +43,13 @@ rtp_activator_base_url = "https://mil-d-apim.azure-api.


rtp_environment_secrets = {
COSMOS_ACCOUNT_RTP_ENDPOINT : "cosmosdb-account-rtp-endpoint"
APPLICATIONINSIGHTS_CONNECTION_STRING: "appinsights-connection-string"
COSMOS_ACCOUNT_RTP_ENDPOINT : "cosmosdb-account-rtp-endpoint"
APPLICATIONINSIGHTS_CONNECTION_STRING : "appinsights-connection-string"
}


rtp_environment_configs = {
DB_NAME : "rtp"
BASE_URL : "https://"
}
OTEL_TRACES_SAMPLER : "always_on"
}
8 changes: 4 additions & 4 deletions src/main/terraform/env/cstar-p-weu-rtp/terraform.tfvars
Original file line number Diff line number Diff line change
Expand Up @@ -42,12 +42,12 @@ rtp_activator_min_replicas = 1
rtp_activator_base_url = "https://mil-d-apim.azure-api.net/rtp_activator"

rtp_environment_secrets = {
COSMOS_ACCOUNT_RTP_ENDPOINT : "cosmosdb-account-rtp-endpoint"
APPLICATIONINSIGHTS_CONNECTION_STRING: "appinsights-connection-string"
COSMOS_ACCOUNT_RTP_ENDPOINT : "cosmosdb-account-rtp-endpoint"
APPLICATIONINSIGHTS_CONNECTION_STRING : "appinsights-connection-string"
}


rtp_environment_configs = {
DB_NAME : "rtp"
BASE_URL : "https://"
}
OTEL_TRACES_SAMPLER : "always_on"
}
7 changes: 4 additions & 3 deletions src/main/terraform/env/cstar-u-weu-rtp/terraform.tfvars
Original file line number Diff line number Diff line change
Expand Up @@ -43,12 +43,13 @@ rtp_activator_base_url = "https://mil-d-apim.azure-api.


rtp_environment_secrets = {
COSMOS_ACCOUNT_RTP_ENDPOINT : "cosmosdb-account-rtp-endpoint"
APPLICATIONINSIGHTS_CONNECTION_STRING: "appinsights-connection-string"
COSMOS_ACCOUNT_RTP_ENDPOINT : "cosmosdb-account-rtp-endpoint"
APPLICATIONINSIGHTS_CONNECTION_STRING : "appinsights-connection-string"
}


rtp_environment_configs = {
DB_NAME : "rtp"
BASE_URL : "https://"
}
OTEL_TRACES_SAMPLER : "always_on"
}
2 changes: 0 additions & 2 deletions src/main/terraform/locals.tf
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@ locals {
#
project = var.domain == "" ? "${var.prefix}-${var.env_short}" : "${var.prefix}-${var.env_short}-${var.domain}"



rtp_kv_name = "${var.prefix}-${var.env_short}-${var.location_short}-${var.domain}-kv"
rtp_kv_resource_group_name = "${var.prefix}-${var.env_short}-${var.location_short}-${var.domain}-sec-rg"
}

0 comments on commit 89b0bea

Please sign in to comment.