Skip to content

gcp: CloudRunServiceComposite sets projectRef and location (#4182) - #4185

Merged
lex00 merged 1 commit into
mainfrom
lexicons/4182-cloud-run-project-ref
Oct 21, 2026
Merged

lex00 merged 1 commit into
mainfrom
lexicons/4182-cloud-run-project-ref

Conversation

@lex00

@lex00 lex00 commented Oct 21, 2026

Copy link
Copy Markdown
Contributor

Closes #4182.

  • projectId (sets projectRef.external) and location are new or now always set, defaulting to GCP.ProjectId and GCP.Region, which resolve from GCP_PROJECT_ID and GCP_REGION at build (serializer.ts:221). A default keeps existing callers building, and the CRD's requirement is met either way.
  • The as Record<string, unknown> cast on the RunService props is removed; the gcp lexicon typechecks without it.
  • The doc example imports CloudRunServiceComposite.
  • Catalog regenerated; tests cover the explicit and default values.

Tests: vitest --project unit lexicons/gcp/src/composites (81 pass), gcp tsc --noEmit, check-lexicons (no untracked failures).

…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
lex00 merged commit 32dbb0d into main Oct 21, 2026
12 checks passed
@lex00
lex00 deleted the lexicons/4182-cloud-run-project-ref branch October 21, 2026 04:26
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.
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.

gcp: CloudRunServiceComposite never sets projectRef

1 participant