Skip to content

Add optional targetCluster to pipeline submission - #2587

Draft
morgan-wowk wants to merge 1 commit into
masterfrom
eo9-c1-submit-target-cluster
Draft

Add optional targetCluster to pipeline submission#2587
morgan-wowk wants to merge 1 commit into
masterfrom
eo9-c1-submit-target-cluster

Conversation

@morgan-wowk

@morgan-wowk morgan-wowk commented Jul 29, 2026

Copy link
Copy Markdown

What

Adds an optional targetCluster to submitPipelineRun. When set, it adds the run annotation cloud-pipelines.net/orchestration/target_cluster, which the backend launcher router uses to pick which GKE execution cluster the run lands on. When unset, the run payload is byte-identical to today.

Why

Part of the eo9 execution migration. The backend (oasis-backend) routes a run to the "next" GKE cluster when this annotation matches GKE_CLUSTER_ID_NEXT; otherwise default routing is unchanged. This PR is the plumbing — it does not yet surface a picker (that's the stacked follow-up). The annotation key is centralized in src/utils/annotations.ts (ORCHESTRATION_TARGET_CLUSTER_ANNOTATION) to avoid drift with the backend constant.

Changes

  • src/utils/annotations.ts: ORCHESTRATION_TARGET_CLUSTER_ANNOTATION constant.
  • src/utils/submitPipeline.ts: optional targetCluster option, conditionally spread into payload.annotations.

Tests

submitPipeline.test.ts: annotation present when targetCluster set; run annotations { source: "web-app" } unchanged when unset. Full suite (31) green; tsc --noEmit, eslint, prettier clean.

Draft — Stack C1 of the eo9 execution migration; the submit-dialog cluster picker stacks on top.

submitPipelineRun gains an optional targetCluster; when set it adds the
cloud-pipelines.net/orchestration/target_cluster run annotation the backend
router uses to pick the execution cluster. When unset the run payload is
byte-identical to today, so default routing is unaffected. The annotation
key is centralized in src/utils/annotations.ts.
@github-actions

Copy link
Copy Markdown

🎩 Preview

A preview build has been created at: eo9-c1-submit-target-cluster/2aaca3b

Copy link
Copy Markdown
Author

This stack of pull requests is managed by Graphite. Learn more about stacking.

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.

1 participant