Repository navigation
feat: add GPU CRD to lease cloud GPU runtimes via a provider interface - #164
Conversation
Co-authored-by: Eden Reich <[email protected]>
Co-authored-by: Eden Reich <[email protected]>
Co-authored-by: Eden Reich <[email protected]>
Co-authored-by: Eden Reich <[email protected]>
|
@claude Code scanning is failing, can you fix this? btw the example is very confusing can you improve it, let's demonstrate how to deploy ornith using runpod provider. use /ponytail:ponytail |
… between integer types' Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
|
Claude finished @edenreich's task in 13m 43s —— View job Done
Pushed Code scanning fixThe alert is the if n, err := strconv.ParseUint(p, 10, 16); err == nil {
return int32(n)
}
Why the old example was confusingIt pointed The reworked
Verification
Note: CI (including CodeQL) was mid-run when you commented; it'll re-run on the new commit. |
## [0.20.0](v0.19.1...v0.20.0) (2026-07-22) ### ✨ Features * add GPU CRD to lease cloud GPU runtimes via a provider interface ([#164](#164)) ([3e582f1](3e582f1)) ### 🐛 Bug Fixes * **gateway:** Map telemetry.traces.exporter.otlp to TRACING_OTLP_ENDPOINT env vars ([#169](#169)) ([7ddf4a8](7ddf4a8)) ### 👷 CI * **deps:** bump sigs.k8s.io/gateway-api in the gomod group ([#165](#165)) ([9f55bd8](9f55bd8)) * **deps:** bump the github-actions group with 2 updates ([#166](#166)) ([26c8846](26c8846))
|
🎉 This PR is included in version 0.20.0 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
Summary
Introduces a namespaced
GPUcustom resource that provisions and manages externally hosted, GPU-backed inference runtimes. The Kubernetes cluster is the control plane only; GPU hardware, drivers, scheduling and inference execution stay with an external infrastructure provider (RunPod first) behind a pluggable provider interface.What's included
api/v1alpha1/gpu_types.go):GPUkind withprovider,credentialsRef,image,command,gpuTypes,endpoint{port,readinessPath}, requiredmaxRuntime; status withphase,instanceID,url,connectionSecretRef,startedAt/expiresAt, and aReadycondition. Phases: Pending/Provisioning/Starting/Ready/Terminating/Expired/Failed.internal/gpu/provider.go):Provision/Get/Destroywith an idempotent-by-UID contract and a name-based factory.internal/gpu/runpod.go): standard-library-only REST client. Recovers an existing pod by UID tag before creating, builds the proxy URL, treatsNot Foundas successful cleanup.internal/controller/gpu_controller.go): full lifecycle state machine - persistsinstanceIDfor crash recovery, gatesReady=Trueon the actual HTTPreadinessPath, publishes a per-allocation connection Secret (never the provider key), enforcesmaxRuntimeintoExpired(no auto-reprovision), and a finalizer that releases the allocation on deletion.cmd/main.go; RBAC, CRD, sample, PROJECT and the bundledmanifests/*.yamlregenerated;examples/gpushows a Gateway consuming the connection Secret viasecretKeyRef.Tests
maxRuntimeinto Expired with no reprovision, crash-after-create-before-status-persist recovering a single allocation, finalizer cleanup, and missing-credentials into Failed.All acceptance criteria in the issue are covered.
task lintis clean andtask testis green.Notes / follow-ups
API_KEYenv var. Runtimes that expect a different variable will need that documented per image.gpuRef) is intentionally out of scope for this first cut, per the issue.Downstream impact
inference-gateway/docs).manifests/install.yaml/manifests/crds.yamlnow ship theGPUCRD; any Helm packaging that mirrors these should pick it up on the next release.Closes #163