Skip to content

[BUG] Orchestrator overrides the image entrypoint with command infer #302

Closed

Description

@edenreich

Summary

The Orchestrator's daemon container sets Command: ["infer"] (buildOrchestratorPodTemplate in internal/controller/orchestrator_controller.go, v0.28.0). That overrides the image's ENTRYPOINT, so any image built on the CLI image with an entrypoint of its own never runs it.

The CLI's teleport now runs every Kubernetes workspace as an Orchestrator with runtime: Sandbox (inference-gateway/cli#1660). Its desktop workspace image starts Xvfb and Chromium from its entrypoint before exec infer "$@". Under the Orchestrator that entrypoint is skipped, so the pod has no display and every Computer call fails.

The stock CLI image already declares ENTRYPOINT ["infer"], so Command is redundant for it. Setting only Args: ["daemon"] keeps the stock image working and lets derived images wrap the daemon.

Steps to Reproduce

  1. Build an image FROM ghcr.io/inference-gateway/cli whose ENTRYPOINT is a script that starts a side process and then runs exec infer "$@" (for example examples/session-teleport/desktop in inference-gateway/cli before #1660).
  2. Apply an Orchestrator with that spec.image, runtime: Sandbox and a daemon.binding.
  3. Run kubectl get pod <name> -o jsonpath='{.spec.containers[0].command}', then list the pod's processes.

Expected Behavior

The pod runs the image's entrypoint with daemon as its argument, so the wrapper starts its side processes and then the daemon.

Actual Behavior

The pod's command is ["infer"] and its args are ["daemon"]. Only infer daemon and its workers run, and the image's entrypoint never does. inference-gateway/cli#1660 works around it by putting an infer wrapper first on PATH in the desktop image. Once the operator drops Command, that wrapper is no longer needed.

Activity

  1. added
    bug
    on Oct 31, 2026
  2. added theissue type on Oct 31, 2026
  3. moved this to Todo in 2026on Oct 31, 2026
  4. edenreich commented on Oct 31, 2026

    @edenreich
    ContributorAuthor

    @claude can you work on this? use /ponytail:ponytail /domain-driven-design /clean-architecture /clean-code

  5. inference-gateway-maintainer commented on Oct 31, 2026

    @inference-gateway-maintainer
    Contributor

    Claude finished @edenreich's task in 4m 27s —— View job • fix/issue-302-20261031-1655 • [Create PR ➔](https://github.com/inference-gateway/operator/compare/main...fix/issue-302-20261031-1655?quick_pull=1&title=Issue%20%23302%3A%20Changes%20from%20Claude&body=This%20PR%20addresses%20issue%20%23302%0A%0AGenerated%20with%20%5BClaude%20Code%5D(https%3A%2F%2Fclaude.ai%2Fcode)


    Dropped the Command override

    • Read buildOrchestratorPodTemplate and the orchestrator tests
    • Remove Command: ["infer"], keep Args: ["daemon"]
    • Update the unit test and the e2e expectation
    • gofmt / go vet / golangci-lint / task test - all clean
    • Commit, open PR fix(orchestrator): keep the image entrypoint, pass daemon as arg #303, board -> QA
    • File follow-ups (CLI wrapper removal, docs)

    The one-line fix: internal/controller/orchestrator_controller.go:581 no longer sets Command. The stock CLI image already declares ENTRYPOINT ["infer"], so infer daemon still runs, and a derived image's entrypoint now gets invoked with daemon as its argument. The Sandbox runtime reuses the same pod template, so runtime: Sandbox is covered without a second change.

    Tests updated to assert Command is empty rather than ["infer"] - internal/controller/orchestrator_controller_test.go:107 and test/e2e/orchestrator_test.go:142.

    Follow-ups filed: inference-gateway/cli#1661 (drop the infer PATH wrapper from the desktop image once an operator release with this fix is in use) and inference-gateway/docs#1048.

    Not done: the e2e suite was not executed - it needs a local k3d cluster that this runner does not have, so the e2e assertion change is verified by reading only. Risk: any existing spec.image whose ENTRYPOINT is empty or is not infer will now fail to start where it previously worked by accident.

    Create a PR: #303
    | Branch

  6. moved this from Todo to In progress in 2026on Oct 31, 2026
  7. added a commit that references this issue on Oct 31, 2026
    acbb583
  8. moved this from In progress to QA in 2026on Oct 31, 2026
  9. inference-gateway-releaser commented on Oct 31, 2026

    @inference-gateway-releaser
    Contributor

    🎉 This issue has been resolved in version 0.28.1 🎉

    The release is available on GitHub release

    Your semantic-release bot 📦🚀

  10. moved this from QA to Done in 2026on Oct 31, 2026
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

    bugreleased

    Type

    Projects

    • Status
      Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions