Skip to content

fix(orchestrator): keep the image entrypoint, pass daemon as arg - #303

Merged
edenreich merged 1 commit into
mainfrom
fix/issue-302-20261031-1655
Oct 31, 2026
Merged

edenreich merged 1 commit into
mainfrom
fix/issue-302-20261031-1655

Conversation

@inference-gateway-maintainer

Copy link
Copy Markdown
Contributor

Summary

The Orchestrator daemon container set Command: ["infer"], which overrides the image's ENTRYPOINT. Any image derived from the CLI image that wraps the daemon (for example the desktop workspace image that starts Xvfb and Chromium before exec infer "$@") never ran its entrypoint, so the pod had no display and every Computer call failed.

The stock CLI image already declares ENTRYPOINT ["infer"], so Command was redundant. This drops it and keeps only Args: ["daemon"]: the stock image still runs infer daemon, and derived images get their entrypoint invoked with daemon as the argument.

Changes

  • internal/controller/orchestrator_controller.go: remove the Command override from buildOrchestratorPodTemplate. The Sandbox runtime reuses the same pod template, so runtime: Sandbox is covered too.
  • internal/controller/orchestrator_controller_test.go: assert Command is empty and Args is ["daemon"].
  • test/e2e/orchestrator_test.go: same expectation against the live Deployment.

Verification

task test (envtest, 70.8% controller coverage), go vet, golangci-lint run - all clean. The e2e suite was not run here (it needs a local k3d cluster).

Downstream impact

Once this ships, the infer PATH wrapper added in inference-gateway/cli#1660 for the desktop workspace image is no longer needed and can be removed. Filed as a follow-up on the CLI repo.

Closes #302

@inference-gateway-maintainer
inference-gateway-maintainer Bot requested a review from a team as a code owner October 31, 2026 16:58
@edenreich
edenreich merged commit 98b0f26 into main Oct 31, 2026
1 check passed
@edenreich
edenreich deleted the fix/issue-302-20261031-1655 branch October 31, 2026 17:08
inference-gateway-releaser Bot added a commit that referenced this pull request Oct 31, 2026
## [0.28.1](v0.28.0...v0.28.1) (2026-10-31)

### 🐛 Bug Fixes

* **orchestrator:** keep the image entrypoint, pass daemon as arg ([#303](#303)) ([98b0f26](98b0f26)), closes [#302](#302)
@inference-gateway-releaser

Copy link
Copy Markdown
Contributor

🎉 This PR is included in version 0.28.1 🎉

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 Oct 31, 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.

[BUG] Orchestrator overrides the image entrypoint with command infer

1 participant