You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
refactor(k8s): clean up gpu matrix, eliminate vllm references and extract static json asset #1223
priority/p1-highPriority P1: high-impact work for the next planned milestonescope/k8sKubernetes commands, Helm charts, pods, services, and policiestype/refactorType refactor: a new structure, same behavior
Refactors the Kubernetes GPU configuration matrix and service alias system (src/devops_cli/k8s/gpu_matrix.py):
Asset Extraction: Extracts hardcoded matrix profiles, provider service aliases, speed tier service aliases, and gateway routes from static Python dictionaries into src/devops_cli/k8s/gpu_matrix.json.
Eliminates Vestigial vLLM References: Purges 12 unused vLLM hardware profiles and 8 unused vLLM service aliases. Retains only the 12 Ollama profiles and 8 Ollama service aliases matching the cluster manifests.
Eliminates Iterative Attribute Loops: Replaces iterative attribute computation (total_vram_gib) in loops with validated schema models (GpuProfile).
Code Reduction: Reduces src/devops_cli/k8s/gpu_matrix.py from 845 lines down to 136 lines, parsing the structured JSON asset once via @functools.cache.
Acceptance Criteria of docs/agent/tasks/task-1223-refactor-gpu-matrix.md:
Extract profiles, provider_service_aliases, speed_tier_service_aliases, and gateway_routes into src/devops_cli/k8s/gpu_matrix.json.
Eliminate all vestigial vllm profiles, service aliases, and backend literals from src/devops_cli/k8s/gpu_matrix.py and src/devops_cli/commands/k8s/gpu_matrix.py.
Replace iterative attribute population in loops with validated schema models (GpuProfile).
Ensure get_gateway_routing_entries() returns the 19 LiteLLM routes matching k8s/llm/gateway/configmap.yaml.
Update test suite in tests/test_k8s_gpu_matrix.py covering all 12 profiles, service aliases, filtering, CLI table/json formatting, and gateway consistency.
Pre-push Gated CI validation suite passes with 100% green status.
priority/p1-highPriority P1: high-impact work for the next planned milestonescope/k8sKubernetes commands, Helm charts, pods, services, and policiestype/refactorType refactor: a new structure, same behavior
Activity
refactor(k8s): clean up gpu matrix, eliminate vllm references and ext…
dan-petty-bot commentedon Oct 5, 2026
What changed
#1224, merged into
release/v0.2.27as 09b8d5d.8 file(s) changed.
How it was verified
Check runs at 4575c4e:
Acceptance Criteria of
docs/agent/tasks/task-1223-refactor-gpu-matrix.md:profiles,provider_service_aliases,speed_tier_service_aliases, andgateway_routesintosrc/devops_cli/k8s/gpu_matrix.json.vllmprofiles, service aliases, and backend literals fromsrc/devops_cli/k8s/gpu_matrix.pyandsrc/devops_cli/commands/k8s/gpu_matrix.py.GpuProfile).get_gateway_routing_entries()returns the 19 LiteLLM routes matchingk8s/llm/gateway/configmap.yaml.tests/test_k8s_gpu_matrix.pycovering all 12 profiles, service aliases, filtering, CLI table/json formatting, and gateway consistency.feat(release): v0.2.27 (#1257)