Skip to content

fix(#343): stop stamping GPU_LIMITS on CPU-only installs - #617

Merged
divyasinghds merged 2 commits into
developfrom
fix/343-gpu-limits-cpu-only
Aug 6, 2026
Merged

fix(#343): stop stamping GPU_LIMITS on CPU-only installs#617
divyasinghds merged 2 commits into
developfrom
fix/343-gpu-limits-cpu-only

Conversation

@divyasinghds

@divyasinghdsdivyasinghds commented Aug 6, 2026

Copy link
Copy Markdown
Contributor

Closes#343.

Fix

Only stamp the GPU_LIMITS env var (both jobs-manager containers) when a GPU value is actually configured (non-empty), removing the phantom-GPU source on CPU-only installs.

Files

  • client/templates/jobs-manager-deployment.yaml

Validation

helm template — 2 GPU_LIMITS entries when set, 0 when empty/absent.

🤖 Generated with Claude Code


Note

Low Risk
Scoped Helm templating change for optional GPU env vars; GPU-enabled installs keep paired request/limit behavior.

Overview
Fixes #343 by changing how the jobs-manager Helm template sets GPU-related env on the api and pods-monitor containers.

GPU_REQUESTS and GPU_LIMITS are only rendered when env.GPU_LIMITS is non-empty. CPU-only installs (empty GPU_LIMITS or the key omitted) no longer get those vars or the previous nvidia.com/gpu=1 default, which was showing a phantom GPU in the CLI resources view. GPU installs still emit both request and limit together; GPU_LIMITS is taken from values without a chart default inside the gated block.

Chart version bumps to 1.9.22.

Reviewed by Cursor Bugbot for commit f5d5ee3. Bugbot is set up for automated code reviews on this repo. Configure here.

Comment threadclient/templates/jobs-manager-deployment.yaml
divyasinghds added a commit that referenced this pull request Aug 6, 2026
…gbot)
A chart-direct install that omits env.GPU_LIMITS was still emitting
GPU_REQUESTS via its "nvidia.com/gpu=1" fallback, so CPU-only installs
kept a phantom GPU and any chart-direct install could ask for a GPU
request with no matching limit (rejected by the API server). Gate
GPU_REQUESTS with the same `(default "" .Values.env.GPU_LIMITS)`
condition in both the api and pods-monitor containers so a CPU-only
install emits neither var and a GPU install emits both (request==limit).
Also bump client/Chart.yaml version 1.9.15 -> 1.9.16 so the chart
content change is publishable (chart-version-guard).
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>

@cursorcursorBot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cursor Bugbot has reviewed your changes and found 1 potential issue.

Fix All in Cursor

❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.

Reviewed by Cursor Bugbot for commit 5e50d99. Configure here.

Comment threadclient/Chart.yaml Outdated
divyasinghdsand others added 2 commits August 6, 2026 16:25
Only render the GPU_LIMITS env var when a GPU is actually configured
(a non-empty .Values.env.GPU_LIMITS). A CPU-only install writes
GPU_LIMITS: "" and a chart-direct install may omit the key entirely;
previously the template still emitted the var (or its "nvidia.com/gpu=1"
default), surfacing a phantom GPU in the CLI resources view that the CLI
had to normalize away client-side. Applied to both the api and
pods-monitor containers.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
…gbot)
A chart-direct install that omits env.GPU_LIMITS was still emitting
GPU_REQUESTS via its "nvidia.com/gpu=1" fallback, so CPU-only installs
kept a phantom GPU and any chart-direct install could ask for a GPU
request with no matching limit (rejected by the API server). Gate
GPU_REQUESTS with the same `(default "" .Values.env.GPU_LIMITS)`
condition in both the api and pods-monitor containers so a CPU-only
install emits neither var and a GPU install emits both (request==limit).
Also bump client/Chart.yaml version 1.9.15 -> 1.9.16 so the chart
content change is publishable (chart-version-guard).
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@divyasinghds
divyasinghdsforce-pushed the fix/343-gpu-limits-cpu-only branch from 5e50d99 to f5d5ee3CompareAugust 6, 2026 10:55
@divyasinghds
divyasinghds merged commit 71314b8 into developAug 6, 2026
21 of 23 checks passed
@divyasinghds
divyasinghds deleted the fix/343-gpu-limits-cpu-only branch August 6, 2026 13:24
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Stop stamping GPU_LIMITS on CPU-only installs (CLI phantom-GPU source fix)

3 participants

@divyasinghds@saadqbal@LukasWodka