Skip to content

[DOCS] README label selector and Orchestrator discovery manifests fail against the current controller and CRDs #274

Closed

Description

@inference-gateway-maintainer

Summary

Two README snippets do not work against the current controller and CRDs. The Monitoring and Status command kubectl get deployments,services,configmaps -l app=my-first-gateway relies on the comment "everything the operator creates for a Gateway is labeled app=", but the Gateway controller sets no labels on the Deployment or Service metadata - app=<name> is only on the pod template and in the Deployment and Service selectors (internal/controller/gateway_controller.go L446-472, L920-933). Only the routing ConfigMap, upstream Gateway, HTTPRoute and HPA carry app=<name> (L1102, L1223-1225, L1293-1295, L1533-1535), and the ServiceAccount uses app.kubernetes.io/* labels instead (L1631-1636). A fake-client Reconcile followed by a List with app=<name> returns 0 Deployments and 0 Services. Separately, the two Orchestrator discovery manifests omit fields the Orchestrator CRD requires - image, channels.telegram.enabled, channels.telegram.tokenSecretRef, gateway.url and agent.model (api/v1alpha1/orchestrator_types.go L31-35, L78-80, L90-91, L98-99; config/crd/bases/core.inference-gateway.com_orchestrators.yaml L708-712) - so the API server rejects them as written.

Acceptance Criteria

  • README.md L846-848: -l app=my-first-gateway matches no Deployment or Service (at most the <name>-routing ConfigMap when spec.routing.config is inline). Fix the comment and list the Deployment and Service by name instead, e.g. kubectl get deployment,service my-first-gateway, or add app=<name> to their metadata in the controller.
  • README.md L630-649 (A2A Service Discovery Configuration): the Orchestrator manifest has only spec.a2a; add the required image, channels.telegram (enabled, tokenSecretRef), gateway.url and agent.model, or present it as a partial spec fragment to merge into the Deploy an Orchestrator example.
  • README.md L758-774 (Orchestrator-side MCP discovery): same missing required fields, same fix.

Activity

  1. added
    documentation
    on Oct 4, 2026
  2. edenreich commented on Oct 4, 2026

    @edenreich
    Contributor

    @claude can you work on this? use /ponytail:ponytail

  3. inference-gateway-maintainer commented on Oct 4, 2026

    @inference-gateway-maintainer
    ContributorAuthor

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


    Done - PR #280

    • Read issue and gather context
    • Verify controller labels + Orchestrator CRD required fields
    • Fix README label-selector snippet
    • Fix the two Orchestrator discovery snippets
    • Commit and open PR

    What I verified

    internal/controller/gateway_controller.go:547-556 puts app=<name> only in the Deployment selector and pod template - the Deployment and Service metadata.labels are empty. Only the routing ConfigMap (L1334), upstream Gateway (L1404) and HPA (L1644) carry app=<name>; the ServiceAccount uses app.kubernetes.io/* (L1737). api/v1alpha1/orchestrator_types.go:31-35, 78-80, 90-91, 98-99 confirms image, channels.telegram.{enabled,tokenSecretRef}, gateway.url and agent.model are all required.

    Changes

    • Monitoring and Status: corrected the comment, list the Deployment and Service by name (kubectl get deployment,service my-first-gateway), and narrowed the label query to the resources that actually carry app=<name>. Left kubectl logs -l app=my-first-gateway as-is - the pod template does carry the label.
    • Both Orchestrator snippets (A2A service discovery, Orchestrator-side MCP discovery): added the required image, channels.telegram, gateway.url and agent.model, using the same values as the Deploy an Orchestrator example.

    Fixed in the docs rather than adding app=<name> to the Deployment/Service metadata in the controller - smaller diff, and no selector churn on existing resources. Say so if you would rather have the controller labels instead.

    Tracked on Roadmap 2026 (project #8), Status set to QA.
    | Branch | PR #280

  4. inference-gateway-releaser commented on Oct 4, 2026

    @inference-gateway-releaser
    Contributor

    🎉 This issue has been resolved in version 0.27.1 🎉

    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

    • Status
      Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions