Skip to content

feat: use Cloud Run Gen2 execution environment for all services#467

Open
davideme wants to merge 2 commits intomainfrom
claude/hardcore-moser
Open

feat: use Cloud Run Gen2 execution environment for all services#467
davideme wants to merge 2 commits intomainfrom
claude/hardcore-moser

Conversation

@davideme
Copy link
Copy Markdown
Owner

Summary

  • Adds run.googleapis.com/execution-environment: gen2 annotation to all six service.yaml files (TypeScript, Python, Go, Java, Kotlin, C#)
  • Explicitly opts in to the second generation Cloud Run execution environment, which provides better performance, full Linux compatibility, and is required for sidecar container support

Test plan

  • Deploy any updated service: gcloud run services replace src/<lang>/service.yaml --region=<region>
  • Verify annotation: gcloud run services describe <service-name> --region=<region> --format='get(spec.template.metadata.annotations)' — should show run.googleapis.com/execution-environment: gen2

🤖 Generated with Claude Code

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>
Copilot AI review requested due to automatic review settings March 23, 2026 11:50
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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: gen2 under spec.template.metadata.annotations for 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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants