Skip to content

[DOCS] README quick start misses namespace label and Gateway API CRD prerequisites #251

Closed

Description

Summary

Following the README quick start against the shipped install.yaml does not produce a working Gateway.

  • The operator Deployment sets WATCH_NAMESPACE_SELECTOR=inference-gateway.com/managed=true (config/operator/operator.yaml L68-69). The Gateway, Agent, MCP and GPU reconcilers return early for any resource whose namespace lacks that label (namespaceWatched in internal/controller/namespace_watch.go, called from gateway_controller.go L78, agent_controller.go L65, mcp_controller.go L101 and gpu_controller.go L88). The Orchestrator reconciler does not apply this filter. The README never mentions the label, and "Deploy Your First Gateway" creates its Gateway in the unlabeled default namespace, so the operator only logs skipping gateway, namespace does not match WATCH_NAMESPACE_SELECTOR and creates nothing.
  • The operator needs the Kubernetes Gateway API CRDs even when routing is never used. cmd/main.go L51 installs gwapiv1 into the scheme, and GatewayReconciler.SetupWithManager owns gateway.networking.k8s.io/v1 Gateway and HTTPRoute (internal/controller/gateway_controller.go L1633-1634). install.yaml does not ship those CRDs, so on a cluster without them controller-runtime cannot start the informers, the Gateway controller fails after the cache sync timeout and the manager exits. The Prerequisites section only lists kubectl and a cluster.
  • The Verification section refers to a Deployment and pod layout that do not exist.

Acceptance Criteria

  • README.md Prerequisites (L155-158): list the Gateway API standard-channel CRDs as a hard requirement, with an install command (the Taskfile applies standard-install.yaml for GATEWAY_API_VERSION v1.5.1, Taskfile.yaml L169-177).
  • README.md Deploy Your First Gateway (L327-364), the Minimal Gateway example (L466) and the other inline Gateway, Agent and MCP examples: explain that the shipped operator only reconciles Gateway, Agent, MCP and GPU resources in namespaces labeled inference-gateway.com/managed=true, add a kubectl label namespace <ns> inference-gateway.com/managed=true step (the examples/* manifests already create labeled namespaces), and document that changing or clearing WATCH_NAMESPACE_SELECTOR on the operator Deployment changes the scope (empty means all namespaces, cmd/main.go L179-185).
  • README.md Verification (L313 and L321): the operator Deployment is operator-inference-gateway (name inference-gateway in config/operator/operator.yaml plus namePrefix: operator- in config/environments/prod/kustomization.yaml) and runs a single operator container, so the logs command should use deployment/operator-inference-gateway and the expected pod line should show 1/1, not operator-controller-manager ... 2/2.
  • README.md Verification expected output (L323-324): install.yaml installs five CRDs (agents, gateways, gpus, mcps and orchestrators in core.inference-gateway.com), not only gateways.
  • manifests/README.md Troubleshooting (L154): the CrashLoopBackOff hint should also name the missing Gateway API CRDs, not only the operator CRDs.

Activity

  1. added
    documentation
    on Sep 25, 2026
  2. edenreich commented on Sep 25, 2026

    @edenreich
    Contributor

    @claude can you work on this?

  3. inference-gateway-maintainer commented on Sep 25, 2026

    @inference-gateway-maintainer
    ContributorAuthor

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


    Done

    • Gather context (README, manifests/README, controllers, Taskfile, install.yaml)
    • Track issue on Roadmap board (In progress -> QA)
    • README Prerequisites: Gateway API standard-channel CRDs as a hard requirement + install command (v1.5.1, matching GATEWAY_API_VERSION), noting install.yaml does not bundle them
    • New Namespace Scoping section (+ TOC entry): inference-gateway.com/managed=true requirement for Gateway/Agent/MCP/GPU, kubectl label namespace step, Orchestrator exemption, and WATCH_NAMESPACE_SELECTOR override (empty = all namespaces). "Deploy Your First Gateway" now labels default first; Example Configurations points at the section.
    • README Verification: deployment/operator-inference-gateway, 1/1 pod (single operator container), all five CRDs (agents, gateways, gpus, mcps, orchestrators)
    • README Troubleshooting: entries for unlabeled namespace and missing Gateway API CRDs
    • manifests/README.md CrashLoopBackOff hint now names the Gateway API CRDs with the install command
    • Commit + PR

    Verified against source before writing: operator-inference-gateway / single operator container (config/operator/operator.yaml + namePrefix: operator-), 5 CRDs in manifests/install.yaml, GATEWAY_API_VERSION: v1.5.1, and namespaceWatched semantics in internal/controller/namespace_watch.go (unset selector matches everything).

    Docs only - no code, manifest or test changes, so no generation or test run was needed. One unrelated reflow that a newer local prettier (3.9.9 vs the pinned 3.6.2) introduced was reverted to keep the diff minimal.

    PR: #258
    Follow-up: filed inference-gateway/docs#790 to mirror the same prerequisites on the docs site.
    | Branch

  4. moved this from In progress to QA in 2026on Sep 25, 2026
  5. inference-gateway-releaser commented on Oct 3, 2026

    @inference-gateway-releaser
    Contributor

    🎉 This issue has been resolved in version 0.27.0 🎉

    The release is available on GitHub release

    Your semantic-release bot 📦🚀

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

    documentationreleased

    Type

    Projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions