Skip to content

refactor(modules): replace modules/cloud-run-v2-se with upstream cloud-run-v2 - #564

Merged
aghassemlouei merged 1 commit into
google:mainfrom
ForeverYoung48:refactor/replace-cloud-run-v2-se
Nov 24, 2026
Merged

aghassemlouei merged 1 commit into
google:mainfrom
ForeverYoung48:refactor/replace-cloud-run-v2-se

Conversation

@ForeverYoung48

Copy link
Copy Markdown
Contributor

Description

Replaces the identical modules/cloud-run-v2-se copy with upstream modules/cloud-run-v2/ across the repository. As noted in docs/upstream-sync.md, modules/cloud-run-v2-se has matched upstream modules/cloud-run-v2 byte-for-byte since the v59.2.0 sync, leaving only one caller in blueprints/fedramp-high/cloud-run/main.tf.

  • In blueprints/fedramp-high/cloud-run/main.tf, pointed module "cloud-run" to ../../../modules/cloud-run-v2/.
  • Removed the duplicate modules/cloud-run-v2-se/ directory.
  • In tests/test_cloud_run_invoker_scope.py, updated _MODULE_OUTPUTS_TF to modules/cloud-run-v2/outputs.tf.
  • In docs/upstream-sync.md and docs/tdd.md, removed the retired cloud-run-v2-se references.

Fixes #320

Type of Change

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Documentation update

Deployment & Compliance Impact

  • Applicable Regimes:
    • US Region Restricted (e.g., Access Policy constraint)
    • FedRAMP Moderate
    • FedRAMP High
    • DoD IL4
    • DoD IL5
    • General / All
  • NIST 800-53r5 Controls: CM-2, SA-10 (reduces duplicate module maintenance surface with zero Terraform state address changes because the module label module.cloud-run is unchanged).

Checklist

Code Quality & Reusability

  • My code adheres to the Maximize Reusability principle. I have not redefined common elements and have reused existing base configurations and modules where possible.
  • I have checked that no existing module or configuration in modules/ or fast/stages-aw/ can be leveraged for this change.
  • My code follows the established naming conventions outlined in docs/naming-convention.md.

Documentation

  • I have updated the README.md of the modified module or blueprint.
  • I have added/updated documentation for inputs (variables) and outputs.

Security

  • My change adheres to GCP security best practices and the principle of least privilege.
  • I have ensured compliance with the targeted regime (FedRAMP Moderate, FedRAMP High, IL4, IL5, etc.).

Testing

  • I have tested my changes locally.
  • I have included details of my testing in this PR.

Testing Performed

All checks ran locally and offline with no live Google Cloud apply.

  • Ran bash tools/lint.sh (all checks passed, including tflint, boilerplate, formatting, links, READMEs, ruff, blueprint metadata, and version checks).
  • Ran bash tools/run_tests.sh (all Python unit tests, shell tests, and Python AST checks passed).
  • Ran bash tools/run_terraform_tests.sh (all mock test directories passed).
  • Ran terraform init -backend=false && terraform validate in blueprints/fedramp-high/cloud-run (Success! The configuration is valid.).
  • Verified git rev-parse tree hashes of modules/cloud-run-v2-se and modules/cloud-run-v2 were identical prior to deletion and git grep cloud-run-v2-se matches only CHANGELOG.md.

…d-run-v2

Point blueprints/fedramp-high/cloud-run to modules/cloud-run-v2/, remove
the identical modules/cloud-run-v2-se copy, and update the module test
and documentation references.

Fixes google#320
@github-actions github-actions Bot added Documentation Improvements or additions to documentation Scope - Module Related to reusable Terraform modules in the modules directory Framework - FedRAMP High FedRAMP High compliance regime and controls Scope - Blueprint Related to solution blueprints in the blueprints directory Enhancement New feature or request Level of Effort - High Complex task taking a week or more; consider breaking this down into smaller issues. Priority - Medium Standard features and non-blocking bugs; important for the current milestone but not urgent Security Something is insecure or can be secured labels Nov 24, 2026
@ForeverYoung48
ForeverYoung48 marked this pull request as ready for review November 24, 2026 13:56
@ForeverYoung48

Copy link
Copy Markdown
Contributor Author

Tagging @Calvin-Cheng1 and @pulsingSignal for review (do not have sidebar reviewer-assign permissions yet). All CI checks are green.

@aghassemlouei aghassemlouei left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Confirmed modules/cloud-run-v2-se matches upstream modules/cloud-run-v2 with no remaining callers, and verified blueprints/fedramp-high/cloud-run with a live apply and teardown in a Google Cloud sandbox.

@aghassemlouei
aghassemlouei merged commit f743038 into google:main Nov 24, 2026
15 checks passed
@ForeverYoung48
ForeverYoung48 deleted the refactor/replace-cloud-run-v2-se branch November 25, 2026 04:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Documentation Improvements or additions to documentation Enhancement New feature or request Framework - FedRAMP High FedRAMP High compliance regime and controls Level of Effort - High Complex task taking a week or more; consider breaking this down into smaller issues. Priority - Medium Standard features and non-blocking bugs; important for the current milestone but not urgent Scope - Blueprint Related to solution blueprints in the blueprints directory Scope - Module Related to reusable Terraform modules in the modules directory Security Something is insecure or can be secured

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Feature Request] Replace modules/cloud-run-v2-se with the upstream cloud-run-v2 module

2 participants