Skip to content

[DOCS] README and examples use removed or renamed CRD fields (routing, tracing, ingress) #253

Closed

Description

Summary

Several documented manifests use CRD fields that no longer exist or are no longer read. The Gateway CRD schema does not preserve unknown fields, so with kubectl's default strict field validation these manifests are rejected. In api/v1alpha1/gateway_types.go, Kubernetes Gateway API exposure is spec.gatewayAPI (RoutingSpec, L74-77), while spec.routing is now gateway-native model routing (ModelRoutingSpec with only enabled, config and configMapRef, L79-82 and L654-676). Tracing is configured through spec.telemetry.traces.exporter.otlp (L158-221), and spec.ingress was removed. The documented provider list and the Agent example README are also out of date.

Acceptance Criteria

  • README.md Production Gateway with Authentication (L529-539): rename routing: to gatewayAPI:. As written, spec.routing.gateway and spec.routing.httpRoute are unknown fields, and routing.enabled: true would turn on model routing (ROUTING_ENABLED=true, internal/controller/gateway_controller.go L642-647) instead of creating a Gateway and HTTPRoute.
  • README.md Distributed Tracing (L952-961): replace telemetry.tracing.enabled and telemetry.tracing.endpoint with telemetry.enabled: true plus telemetry.traces.exporter.otlp.endpoint (optional protocol: grpc or http/protobuf). Only OTLP is supported, and TELEMETRY_TRACING_ENABLED and TELEMETRY_TRACING_OTLP_ENDPOINT are only emitted in that case (gateway_controller.go L529-536). The Jaeger :14268/api/traces endpoint in the snippet is not an OTLP endpoint.
  • examples/gateway-complete/gateway.yaml (L187-193, plus the Ingress TLS comment at L50) and examples/gateway-complete/README.md (L10, L20, L55-58): spec.ingress no longer exists and the operator creates no Ingress. Move the example to spec.gatewayAPI, and describe what task cluster:create actually installs (cert-manager, Gateway API CRDs and Envoy Gateway, no nginx-ingress). README.md L726 and L734 present this file as the complete, production-ready example, so it currently fails to apply.
  • README.md Supported AI Providers (L59) and AI Providers (L123-135): the provider list is generated from the canonical schema (internal/providers/zz_generated_providers.go) and has 16 entries (anthropic, cloudflare, cohere, deepseek, elevenlabs, google, groq, llamacpp, minimax, mistral, moonshot, nvidia, ollama, ollama_cloud, openai, zai) plus custom via CUSTOM_API_URL and CUSTOM_API_KEY (internal/providers/providers.go). Update both lists and note that providers[].name is matched case-insensitively and that unknown names are left out of status.providerSummary.
  • examples/agent-server/README.md step 2 (L22-28): it tells users to set apiKey.secretRef, which the Agent controller never reads (spec.agent.apiKey is deprecated; only spec.agent.llm.apiKeySecretRef is emitted, as A2A_AGENT_CLIENT_API_KEY, agent_controller.go L436-442). The shipped agent.yaml instead references Secret inference-gateway-providers-secret key OPENAI_API_KEY in namespace agents, which nothing creates, and its llm.baseURL targets Service inference-gateway.inference-gateway, while the suggested prerequisite ../gateway-minimal/ creates a Gateway named simple-gateway.

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 4m 29s —— View job • docs/issue-253-20260925-2213 • [Create PR ➔](https://github.com/inference-gateway/operator/compare/main...docs/issue-253-20260925-2213?quick_pull=1&title=Issue%20%23253%3A%20Changes%20from%20Claude&body=This%20PR%20addresses%20issue%20%23253%0A%0AGenerated%20with%20%5BClaude%20Code%5D(https%3A%2F%2Fclaude.ai%2Fcode)


    Done - PR #259

    • Gather context / verify every claim against the code
    • README.md: routing: -> gatewayAPI: in the production auth example
    • README.md: distributed tracing -> telemetry.enabled + telemetry.traces.exporter.otlp
    • README.md: provider lists regenerated (16 providers + custom, case-insensitive matching, unknown names skipped from status.providerSummary)
    • examples/gateway-complete/: dropped spec.ingress, moved to spec.gatewayAPI, fixed the prerequisites/verification/curl steps
    • examples/agent-server/: fixed step 2, the Secret, and llm.baseURL
    • Commit + open PR

    #259

    Beyond the acceptance criteria

    Two more examples had the identical drift and would also fail to apply, so I fixed them as part of the same rename: examples/gateway-with-routing-simple/gateway.yaml and examples/gateway-with-routing-advanced/gateway.yaml both used routing: where they meant Gateway API exposure.

    Regression guard

    Added api/v1alpha1/examples_test.go - it strict-decodes every CR under examples/ into its API type, which is exactly the validation kubectl applies. Verified it reproduces the bug rather than just passing: on the pre-fix tree it reports 4 unknown-field errors; on the branch go test ./api/... is green.

    Notes on verification

    • go vet ./api/... and go test ./api/... ./internal/providers/... pass.
    • golangci-lint could not be run here - the command is not in this session's allowed tools. If you want it run in future runs, add it to --allowedTools. The new test file follows the repo's gci/importas rules (named imports, stdlib then third-party).
    • A couple of judgement calls worth a look in review: I pointed gateway-complete's gatewayAPI.gateway.tls.issuer at selfsigned-cluster-issuer (the ClusterIssuer task cert-manager:clusterissuer creates), and I changed examples/agent-server/agent.yaml to reference a new agent-llm-secret stub in the agents namespace, since secret refs are namespace-local and nothing created the old inference-gateway-providers-secret there.
      | Branch
  4. 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