Repository navigation
gcp: CloudRunServiceComposite sets projectRef and location (#4182) - #4185
Merged
Merged
Conversation
…Service requires (#4182) The composite built a RunService with no projectRef and an optional location, so WGC402 refused it, and an as-cast hid the type error. It now takes projectId and location, defaulting to GCP.ProjectId and GCP.Region, and the cast is gone. The doc example named a CloudRunService export that doesn't exist.
lex00
added a commit
that referenced
this pull request
Oct 21, 2026
…4198) #4190's branch was built on 60faf26 but committed with 32dbb0d as its parent, so its squash replaced the files those four PRs changed with their older copies. This is the difference between 09a88b7 and the merge #4190 should have made (git merge-tree --merge-base 60faf26 0f57507 673cfb9), applied onto main.
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.
Closes #4182.
projectId(setsprojectRef.external) andlocationare new or now always set, defaulting toGCP.ProjectIdandGCP.Region, which resolve fromGCP_PROJECT_IDandGCP_REGIONat build (serializer.ts:221). A default keeps existing callers building, and the CRD's requirement is met either way.as Record<string, unknown>cast on the RunService props is removed; the gcp lexicon typechecks without it.CloudRunServiceComposite.Tests:
vitest --project unit lexicons/gcp/src/composites(81 pass), gcptsc --noEmit,check-lexicons(no untracked failures).