You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[BUG] Orchestrator overrides the image entrypoint with command infer #302
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
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).
Apply an Orchestrator with that spec.image, runtime: Sandbox and a daemon.binding.
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.
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.
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.
Activity
edenreich commentedon Oct 31, 2026
@claude can you work on this? use /ponytail:ponytail /domain-driven-design /clean-architecture /clean-code
inference-gateway-maintainer commentedon Oct 31, 2026
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
CommandoverridebuildOrchestratorPodTemplateand the orchestrator testsCommand: ["infer"], keepArgs: ["daemon"]gofmt/go vet/golangci-lint/task test- all cleanThe one-line fix:
internal/controller/orchestrator_controller.go:581no longer setsCommand. The stock CLI image already declaresENTRYPOINT ["infer"], soinfer daemonstill runs, and a derived image's entrypoint now gets invoked withdaemonas its argument. The Sandbox runtime reuses the same pod template, soruntime: Sandboxis covered without a second change.Tests updated to assert
Commandis empty rather than["infer"]-internal/controller/orchestrator_controller_test.go:107andtest/e2e/orchestrator_test.go:142.Follow-ups filed: inference-gateway/cli#1661 (drop the
inferPATH 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.imagewhoseENTRYPOINTis empty or is notinferwill now fail to start where it previously worked by accident.Create a PR: #303
| Branch
fix(orchestrator): keep the image entrypoint, pass daemon as arg
chore(release): 🔖 0.28.1 [skip ci]
inference-gateway-releaser commentedon Oct 31, 2026
🎉 This issue has been resolved in version 0.28.1 🎉
The release is available on GitHub release
Your semantic-release bot 📦🚀
fix(teleport): require operator v0.28.1 and drop the desktop infer wr…
feat(teleport): run kubernetes workspaces as operator Orchestrators (#…