Skip to content

refactor(orchestrator): export the status contract from api/v1alpha1 - #330

Merged
edenreich merged 1 commit into
mainfrom
refactor/export-orchestrator-status-contract
Nov 8, 2026
Merged

edenreich merged 1 commit into
mainfrom
refactor/export-orchestrator-status-contract

Conversation

@edenreich

Copy link
Copy Markdown
Contributor

Summary

The Orchestrator's status contract was a set of string literals in internal/controller, so a client that reads it had to copy them. They are now exported from api/v1alpha1/orchestrator_types.go:

  • OrchestratorConditionReady, the Ready condition type.
  • Every reason the controller sets on it: ReasonDeploymentAvailable, ReasonDeploymentNotAvailable, ReasonSandboxReady, ReasonSandboxNotReady, ReasonSandboxSuspended, ReasonInvalidSpec, ReasonSandboxCRDMissing and ReasonGatewayNotFound. The issue named three of them, and the workload state sets the other five.
  • AgentsDoneMessage, the termination message a pod daemon leaves once every agent is done.

Each reason's doc comment says whether it clears on its own or needs a change to the spec or the cluster, which is how a client decides to keep waiting or fail fast.

The controllers use only the exported names. The one "Ready" left in orchestrator_sandbox.go is the condition type on agent-sandbox's own Sandbox resource, not the Orchestrator's.

Closes #322

Compatibility

The values are unchanged, so released CLIs keep working. The controller tests still assert the literal strings, so a changed value fails them.

Verification

  • task test passes.

Cross-repo impact

  • cli: the Kubernetes workspace adapter can import these constants instead of copying the strings once a release ships them. That is a CLI-side change.
  • no docs ticket: Go constants only, the CRD and the values are unchanged

The Ready condition type, every reason the controller sets on it and the
agents-done termination message are exported constants, so a client reads
them instead of copying string literals. Each reason says whether it clears
on its own or needs a spec or cluster change.

The values are unchanged, and the controller tests still assert the
literals, so released clients keep working.
@edenreich
edenreich requested a review from a team as a code owner November 8, 2026 21:57
@edenreich
edenreich merged commit 4b5d854 into main Nov 8, 2026
1 check passed
@edenreich
edenreich deleted the refactor/export-orchestrator-status-contract branch November 8, 2026 22:08
inference-gateway-releaser Bot added a commit that referenced this pull request Nov 8, 2026
## [0.33.0](v0.32.0...v0.33.0) (2026-11-08)

### ✨ Features

* **gateway:** tune MCP health polling with spec.mcp.healthCheck ([#328](#328)) ([ff0867c](ff0867c))
* **orchestrator:** give spec.mcp.servers names and headers in the pod's mcp.yaml ([#324](#324)) ([56f4ff8](56f4ff8)), closes [#321](#321)
* **orchestrator:** pass through binding Service annotations and labels ([#320](#320)) ([d543db8](d543db8))

### ♻️ Improvements

* **orchestrator:** export the status contract from api/v1alpha1 ([#330](#330)) ([4b5d854](4b5d854))

### 🐛 Bug Fixes

* **examples:** serve the example MCP servers over stateless MCP 2026-07-28 ([#325](#325)) ([6d34978](6d34978)), closes [#323](#323)
* **samples:** make the Gateway and MCP samples pass CRD validation ([#329](#329)) ([e2e5d2a](e2e5d2a))

### 👷 CI

* **deps:** bump the gomod group with 4 updates ([#319](#319)) ([67f1bde](67f1bde))
@inference-gateway-releaser

Copy link
Copy Markdown
Contributor

🎉 This PR is included in version 0.33.0 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

@inference-gateway-releaser inference-gateway-releaser Bot added the released Shipped in a release label Nov 8, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

released Shipped in a release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[TASK] Refactor export the Orchestrator status contract from api/v1alpha1

1 participant