Skip to content

[DOCS] examples/gpu and the custom provider docs set provider env vars the gateway never reads #356

Closed

Description

Summary

Two documented ways of pointing a Gateway at an OpenAI-compatible endpoint use a provider name and environment variables that nothing consumes. The operator copies spec.providers[].env onto the gateway container as given, and the gateway only reads <PROVIDER_ID>_API_URL and <PROVIDER_ID>_API_KEY for the provider ids in its registry (config/load.go and providers/registry/registry_data.go in inference-gateway/inference-gateway, checked at commit 5d4b30d). That registry holds the same 18 ids as internal/providers/zz_generated_providers.go - there is no custom and no ornith, and LLM_BASE_URL, LLM_API_KEY, CUSTOM_API_URL and CUSTOM_API_KEY appear nowhere in the gateway repository. So the GPU example leases a runtime the Gateway never talks to. Found by reading both repositories - not run against a cluster.

Acceptance Criteria

  • examples/gpu/gpu.yaml - the Gateway's provider name: ornith with LLM_BASE_URL and LLM_API_KEY reaches no code in the gateway. Wire the ornith-connection Secret (url, apiKey) through a provider id the gateway registers, using that provider's <ID>_API_URL and <ID>_API_KEY variables. ornith also fails providers.IsSupported, so updateProvidersSummary in internal/controller/gateway_controller.go leaves it out of status.providerSummary.
  • examples/gpu/README.md section "Consuming it from a Gateway" - same snippet, same fix. Say which path the provider URL needs: the connection Secret holds the bare https://<id>-<port>.proxy.runpod.net that toAllocation in internal/gpu/runpod.go builds, without /v1.
  • README.md - the provider list ("plus any OpenAI-compatible endpoint via custom") and the paragraph saying custom uses CUSTOM_API_URL and CUSTOM_API_KEY describe a provider the gateway does not have. Remove them or replace them with a recipe that works.
  • examples/gateway-complete/gateway.yaml and examples/gateway-complete/README.md - drop the Custom provider block, its two keys in the commented Secret and "a custom endpoint" in the feature list, or replace them the same way.
  • internal/providers/providers.go - the doc comment on CustomProvider makes the same claim. Decide whether the operator keeps accepting custom, and keep the comment and the README consistent with that decision.

Activity

  1. added
    documentation
    on Nov 16, 2026
  2. edenreich commented on Nov 17, 2026

    @edenreich
    Contributor

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

  3. inference-gateway-maintainer commented on Nov 17, 2026

    @inference-gateway-maintainer
    ContributorAuthor

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


    Done - PR #361

    • Gather context (operator + gateway provider registry at providers/registry/registry_data.go, config/load.go)
    • Fix examples/gpu/gpu.yaml and examples/gpu/README.md
    • Fix README.md custom provider claims
    • Fix examples/gateway-complete
    • Decide on CustomProvider and align doc comment
    • Run checks, commit, open PR

    Decision: I dropped custom. The operator's provider list is now exactly the gateway's registry, so IsSupported can't approve a name the gateway ignores.

    GPU example: vLLM speaks the OpenAI API, so the example uses the openai provider. The connection Secret holds the bare URL (no /v1), and the gateway's OpenAI base URL needs /v1. So the example loads the Secret into ORNITH_RUNTIME_URL, then sets OPENAI_API_URL: "$(ORNITH_RUNTIME_URL)/v1" with Kubernetes env expansion. OPENAI_API_KEY reads apiKey. The README says this replaces api.openai.com on that Gateway.

    Other changes: I removed the custom text from the root README and replaced it with a short recipe that links to the GPU example. In gateway-complete I removed the Custom block and its Secret keys, and the feature list now says "Mirelo" in place of "a custom endpoint".

    Checks: TestIsSupported (now expects custom to be false) and TestSupportedProvidersHasNoDuplicates pass. golangci-lint on the providers package reports 0 issues. I haven't run the full task test (envtest) or tried this on a cluster.

    Follow-ups: the docs site repeats the custom claim, so I opened inference-gateway/docs#1251. The issue is in QA on the Roadmap board.

    Behavior change: a Gateway that still lists custom is now left out of status.providerSummary. The gateway never read those env vars anyway, so traffic doesn't change.
    • Branch

  4. moved this from Todo to In progress in 2026on Nov 17, 2026
  5. moved this from In progress to QA in 2026on Nov 17, 2026
  6. moved this from QA to Done in 2026on Nov 17, 2026
  7. inference-gateway-releaser commented on Nov 17, 2026

    @inference-gateway-releaser
    Contributor

    🎉 This issue has been resolved in version 0.37.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