Skip to content

gcp has no target var, so behold cannot point a GCP project at floci-gcp — chant#1209 has landed #125

Closed

Description

@lex00

Blocks: INTENTIUS/chant#1211 (E·gcp runtime-e2e) · Unblocked by: INTENTIUS/chant#1209, now closed · Slice of #74

The gap

SUBSTRATE_TARGET_VARS (src/targets.ts) has entries for aws, fly and azure, and none for gcp. Its own header says why:

Azure's arrived with chant#1212; gcp's arrives with chant#1209, and until then a gcp project resolves no target here — correctly, because there is nothing on the chant side to point yet. Listing it early would be behold claiming a routing it cannot perform.

That was right when it was written. chant#1209 is now closed. The reasoning has expired and the entry has not been added.

What landed on the chant side

7f4e985e feat(gcp): observe on the applier's transport, not through a cluster (#1209) replaced the Config-Connector-over-kubectl reader with the direct-REST one. It reads the endpoint from an ambient variable, exactly like aws and azure:

// lexicons/gcp/src/describe-resources.ts
// The endpoint override is the emulator tell (floci-gcp :4588); unset means
// real GCP, exactly as it does for the applier.
const endpoint = process.env.GCP_ENDPOINT_URL;

lexicons/gcp/src/deep-observe.ts reads the same variable. So the thing targets.ts was waiting for exists, and is named GCP_ENDPOINT_URL.

Why it matters now

behold is already inconsistent with itself. detectSubstrates() (src/substrates.ts) surfaces a floci-gcp pill on ^chant-floci-gcp$ at :4588 — so behold shows the emulator and offers to bring it up, then has no way to point the GCP read path at it. The substrate strip says yes and the target lens says nothing.

It also blocks chant#1211 (E·gcp), whose acceptance is a $0 CC round-trip on floci-gcp with "behold observes both substrates in one graph". behold cannot observe the GCP half against the emulator without this.

Fix

One entry, mirroring azure's:

{ lexicon: "gcp", label: "floci-gcp", envVar: "GCP_ENDPOINT_URL" },

Plus the header note updated so it no longer describes gcp as pending, and a resolveSubstrateTargets test covering a gcp project the way the azure one is covered.

Acceptance criteria

  • A gcp-lexicon project with GCP_ENDPOINT_URL set resolves a floci-gcp target through resolveSubstrateTargets.
  • A mixed aws+gcp project resolves both, each to its own endpoint.
  • The targets.ts header no longer claims gcp is waiting on chant#1209.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions