Repository navigation
Description
Summary
inference-gateway/inference-gateway added a new first-class provider, llamacpp (llama.cpp's OpenAI-compatible llama-server), in inference-gateway/inference-gateway#448. The canonical Provider enum in inference-gateway/schemas v0.6.1 now includes llamacpp (keyless: auth_type: none, default URL http://llamacpp:8080/v1).
The operator's provider list is generated from that enum, so it needs a regen to recognize llamacpp.
Why it matters
The operator validates spec.providers[].name in the Gateway CR against SupportedProviders (internal/providers/zz_generated_providers.go, generated by internal/providers/gen/main.go). Until llamacpp is added there, a Gateway CR that declares - name: Llamacpp is rejected.
This is already visible downstream: in the gateway repo's k8s hybrid example (examples/kubernetes/hybrid/gateway.yaml, added in #448) the Llamacpp provider block is committed commented out specifically because the pinned operator release predates this enum entry. Once the operator ships llamacpp, that block can be uncommented and the k8s path becomes one-step.
What to change
- Regenerate the provider list from schemas v0.6.1 (or later): run the generator (
internal/providers/gen) soSupportedProvidersininternal/providers/zz_generated_providers.goincludes"llamacpp". - Cut a release so the gateway's k8s examples can uncomment the
Llamacppprovider block.
Acceptance criteria
-
SupportedProvidersincludesllamacpp - A Gateway CR with
providers: [{ name: Llamacpp, ... }]validates and reconciles - Tests pass
- Released
Refs
- Upstream provider PR: feat(providers): add llamacpp provider inference-gateway#448
- Schema release:
inference-gateway/schemasv0.6.1 (llamacpp:auth_type: none, default port 8080)
Metadata
Metadata
Assignees
Labels
Type
Projects
- StatusShow more project fieldsDone
Activity
[-]feat: add llamacpp provider support[/-][+][FEATURE] Add llamacpp provider support[/+]edenreich commentedon Jul 18, 2026
@claude Can you work on this?
inference-gateway-maintainer commentedon Jul 18, 2026
Claude finished @edenreich's task in 9m 41s —— View job •
feat/issue-160-20260718-2333• [Create PR ➔](https://github.com/inference-gateway/operator/compare/main...feat/issue-160-20260718-2333?quick_pull=1&title=Issue%20%23160%3A%20Changes%20from%20Claude&body=This%20PR%20addresses%20issue%20%23160%0A%0AGenerated%20with%20%5BClaude%20Code%5D(https%3A%2F%2Fclaude.ai%2Fcode)Task: Add
llamacppprovider support - done ✅llamacppenum entry in schemas v0.6.1 /mainSupportedProvidersto includellamacppWhat changed
internal/providers/zz_generated_providers.go- added"llamacpp"toSupportedProviders, alphabetically betweengroqandminimax, matching the canonical schema'scomponents.schemas.Provider.enum. I fetched the live schema (inference-gateway/schemas@main) and confirmed the only difference from the operator's list wasllamacpp(15 entries total, no other drift), so this exactly reproduces what the generator would emit.internal/providers/providers_test.go- addedIsSupportedcases forllamacppand the capitalizedLlamacppform used in Gateway CRs.No CRD regeneration was needed:
ProviderSpec.Namehas no+kubebuilder:validation:Enummarker, so provider names are validated at runtime viaproviders.IsSupported(gateway_controller.go:247), which lowercases input - so- name: Llamacppnow validates and reconciles.Verification
TestIsSupported(incl. the newllamacppcases) andTestSupportedProvidersHasNoDuplicatespass locally.TestSupportedProvidersMatchSchemacouldn't run in this sandbox (outbound network is blocked here), so I verified parity against the live schema by hand; it will run for real in PR CI.feat:commit triggers a semantic-release minor bump when the PR merges tomain.PR & follow-ups
feat/issue-160-20260718-2333inference-gateway-releaser commentedon Jul 19, 2026
🎉 This issue has been resolved in version 0.19.0 🎉
The release is available on GitHub release
Your semantic-release bot 📦🚀