feat: use Cloud Run Gen2 execution environment for all services#467
Open
feat: use Cloud Run Gen2 execution environment for all services#467
Conversation
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 <noreply@anthropic.com>
Contributor
There was a problem hiding this comment.
Pull request overview
This PR opts all language-specific Cloud Run services into the 2nd generation (Gen2) execution environment by adding the run.googleapis.com/execution-environment: gen2 annotation to each service revision template.
Changes:
- Add
run.googleapis.com/execution-environment: gen2underspec.template.metadata.annotationsfor all six services. - Standardize configuration across TypeScript, Python, Go, Java, Kotlin, and C# Cloud Run manifests.
Reviewed changes
Copilot reviewed 6 out of 6 changed files in this pull request and generated no comments.
Show a summary per file
| File | Description |
|---|---|
| src/typescript/service.yaml | Adds Gen2 execution environment annotation to the service revision template. |
| src/python/service.yaml | Adds Gen2 execution environment annotation to the service revision template. |
| src/go/service.yaml | Adds Gen2 execution environment annotation to the service revision template. |
| src/java/service.yaml | Adds Gen2 execution environment annotation to the service revision template. |
| src/kotlin/service.yaml | Adds Gen2 execution environment annotation to the service revision template. |
| src/csharp/service.yaml | Adds Gen2 execution environment annotation to the service revision template. |
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 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
run.googleapis.com/execution-environment: gen2annotation to all sixservice.yamlfiles (TypeScript, Python, Go, Java, Kotlin, C#)Test plan
gcloud run services replace src/<lang>/service.yaml --region=<region>gcloud run services describe <service-name> --region=<region> --format='get(spec.template.metadata.annotations)'— should showrun.googleapis.com/execution-environment: gen2🤖 Generated with Claude Code