From cc5bef0d4a2b7d8bd181083ecb5a20ba6838e39f Mon Sep 17 00:00:00 2001 From: Davide Mendolia Date: Mon, 23 Mar 2026 12:50:28 +0100 Subject: [PATCH 1/2] feat: use Cloud Run Gen2 execution environment for all services Add `run.googleapis.com/execution-environment: gen2` annotation to all six service.yaml files to explicitly opt in to the second generation execution environment. Co-Authored-By: Claude Sonnet 4.6 --- src/csharp/service.yaml | 1 + src/go/service.yaml | 1 + src/java/service.yaml | 1 + src/kotlin/service.yaml | 1 + src/python/service.yaml | 1 + src/typescript/service.yaml | 1 + 6 files changed, 6 insertions(+) diff --git a/src/csharp/service.yaml b/src/csharp/service.yaml index 3df0ff27..e15ff457 100644 --- a/src/csharp/service.yaml +++ b/src/csharp/service.yaml @@ -9,6 +9,7 @@ spec: metadata: annotations: autoscaling.knative.dev/maxScale: '1' + run.googleapis.com/execution-environment: gen2 run.googleapis.com/startup-cpu-boost: 'true' run.googleapis.com/container-dependencies: "{app:[collector]}" spec: diff --git a/src/go/service.yaml b/src/go/service.yaml index 2a78e5bf..2123c67b 100644 --- a/src/go/service.yaml +++ b/src/go/service.yaml @@ -9,6 +9,7 @@ spec: metadata: annotations: autoscaling.knative.dev/maxScale: '1' + run.googleapis.com/execution-environment: gen2 run.googleapis.com/startup-cpu-boost: 'true' run.googleapis.com/container-dependencies: "{app:[collector]}" spec: diff --git a/src/java/service.yaml b/src/java/service.yaml index 280fdb24..5a1ed3a4 100644 --- a/src/java/service.yaml +++ b/src/java/service.yaml @@ -9,6 +9,7 @@ spec: metadata: annotations: autoscaling.knative.dev/maxScale: '1' + run.googleapis.com/execution-environment: gen2 run.googleapis.com/startup-cpu-boost: 'true' run.googleapis.com/container-dependencies: "{app:[collector]}" spec: diff --git a/src/kotlin/service.yaml b/src/kotlin/service.yaml index be7b8cb9..e9c7bc1a 100644 --- a/src/kotlin/service.yaml +++ b/src/kotlin/service.yaml @@ -9,6 +9,7 @@ spec: metadata: annotations: autoscaling.knative.dev/maxScale: '1' + run.googleapis.com/execution-environment: gen2 run.googleapis.com/startup-cpu-boost: 'true' run.googleapis.com/container-dependencies: "{app:[collector]}" spec: diff --git a/src/python/service.yaml b/src/python/service.yaml index 7da2c26a..adf01376 100644 --- a/src/python/service.yaml +++ b/src/python/service.yaml @@ -9,6 +9,7 @@ spec: metadata: annotations: autoscaling.knative.dev/maxScale: '1' + run.googleapis.com/execution-environment: gen2 run.googleapis.com/startup-cpu-boost: 'true' run.googleapis.com/container-dependencies: "{app:[collector]}" spec: diff --git a/src/typescript/service.yaml b/src/typescript/service.yaml index 88394168..9d56942f 100644 --- a/src/typescript/service.yaml +++ b/src/typescript/service.yaml @@ -9,6 +9,7 @@ spec: metadata: annotations: autoscaling.knative.dev/maxScale: '1' + run.googleapis.com/execution-environment: gen2 run.googleapis.com/startup-cpu-boost: 'true' run.googleapis.com/container-dependencies: "{app:[collector]}" spec: From f217e619e66a2509f99baf93ce09bd20c35b4232 Mon Sep 17 00:00:00 2001 From: Davide Mendolia Date: Mon, 23 Mar 2026 13:02:00 +0100 Subject: [PATCH 2/2] feat: add Cloud SQL connection to all Cloud Run services Add `run.googleapis.com/cloudsql-instances` annotation to all six service.yaml files to connect to lamp-control-469416:europe-west1:lamp-control-db. Co-Authored-By: Claude Sonnet 4.6 --- src/csharp/service.yaml | 1 + src/go/service.yaml | 1 + src/java/service.yaml | 1 + src/kotlin/service.yaml | 1 + src/python/service.yaml | 1 + src/typescript/service.yaml | 1 + 6 files changed, 6 insertions(+) diff --git a/src/csharp/service.yaml b/src/csharp/service.yaml index e15ff457..bc58239f 100644 --- a/src/csharp/service.yaml +++ b/src/csharp/service.yaml @@ -9,6 +9,7 @@ spec: metadata: annotations: autoscaling.knative.dev/maxScale: '1' + run.googleapis.com/cloudsql-instances: lamp-control-469416:europe-west1:lamp-control-db run.googleapis.com/execution-environment: gen2 run.googleapis.com/startup-cpu-boost: 'true' run.googleapis.com/container-dependencies: "{app:[collector]}" diff --git a/src/go/service.yaml b/src/go/service.yaml index 2123c67b..ea712b1f 100644 --- a/src/go/service.yaml +++ b/src/go/service.yaml @@ -9,6 +9,7 @@ spec: metadata: annotations: autoscaling.knative.dev/maxScale: '1' + run.googleapis.com/cloudsql-instances: lamp-control-469416:europe-west1:lamp-control-db run.googleapis.com/execution-environment: gen2 run.googleapis.com/startup-cpu-boost: 'true' run.googleapis.com/container-dependencies: "{app:[collector]}" diff --git a/src/java/service.yaml b/src/java/service.yaml index 5a1ed3a4..e99b0190 100644 --- a/src/java/service.yaml +++ b/src/java/service.yaml @@ -9,6 +9,7 @@ spec: metadata: annotations: autoscaling.knative.dev/maxScale: '1' + run.googleapis.com/cloudsql-instances: lamp-control-469416:europe-west1:lamp-control-db run.googleapis.com/execution-environment: gen2 run.googleapis.com/startup-cpu-boost: 'true' run.googleapis.com/container-dependencies: "{app:[collector]}" diff --git a/src/kotlin/service.yaml b/src/kotlin/service.yaml index e9c7bc1a..5c3c4962 100644 --- a/src/kotlin/service.yaml +++ b/src/kotlin/service.yaml @@ -9,6 +9,7 @@ spec: metadata: annotations: autoscaling.knative.dev/maxScale: '1' + run.googleapis.com/cloudsql-instances: lamp-control-469416:europe-west1:lamp-control-db run.googleapis.com/execution-environment: gen2 run.googleapis.com/startup-cpu-boost: 'true' run.googleapis.com/container-dependencies: "{app:[collector]}" diff --git a/src/python/service.yaml b/src/python/service.yaml index adf01376..47a65ac6 100644 --- a/src/python/service.yaml +++ b/src/python/service.yaml @@ -9,6 +9,7 @@ spec: metadata: annotations: autoscaling.knative.dev/maxScale: '1' + run.googleapis.com/cloudsql-instances: lamp-control-469416:europe-west1:lamp-control-db run.googleapis.com/execution-environment: gen2 run.googleapis.com/startup-cpu-boost: 'true' run.googleapis.com/container-dependencies: "{app:[collector]}" diff --git a/src/typescript/service.yaml b/src/typescript/service.yaml index 9d56942f..3b5edf35 100644 --- a/src/typescript/service.yaml +++ b/src/typescript/service.yaml @@ -9,6 +9,7 @@ spec: metadata: annotations: autoscaling.knative.dev/maxScale: '1' + run.googleapis.com/cloudsql-instances: lamp-control-469416:europe-west1:lamp-control-db run.googleapis.com/execution-environment: gen2 run.googleapis.com/startup-cpu-boost: 'true' run.googleapis.com/container-dependencies: "{app:[collector]}"