Tolerate nvidia.com/gpu taint in Helm chart and raw manifest defaults #732
All Vouch review confidence checks passed
Residual risk 0.29 = Change Risk (0.73) × (1 − Review Confidence (0.60)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.73 · 595 lines diff across 7 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.17 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Diff Size
diff_size
0.382
Shallow Review Depth
shallow_review_depth
0.289
Sensitive Paths
sensitive_paths
0.073
Real PR Conversation Timeline
1 comments
"Review active on #732"
general
weight: 0.35
KR-Ravindra
Problem
Installing the chart with default values on a cluster whose GPU nodes are tainted
nvidia.com/gpu=true:NoSchedule(the pattern used by EKS/GKE GPU node groups, Karpenter/Cluster Autoscaler GPU pools, and what the NVIDIA device plugin and GPU Operator expect) produces a DaemonSet withDESIRED 0 / CURRENT 0. The release reports success, but no exporter pods run and no metrics are exposed. Thedcgm-exporter.yamlstandalone manifest has the same behaviour, and the README says nothing about taints.Root cause
deployment/values.yaml:190-193only ships anode-role.kubernetes.io/control-planetoleration:deployment/templates/daemonset.yaml:74-77renders that list verbatim ({{- with .Values.tolerations }}/toYaml), so nodes carrying thenvidia.com/gputaint are ineligible for the DaemonSet.dcgm-exporter.yaml(DaemonSet spec, beforevolumes:) has notolerationsat all. The NVIDIA device plugin chart toleratesnvidia.com/gpuExists/NoScheduleby default, so installing both side by side yields the device plugin on the GPU nodes and dcgm-exporter nowhere.Fix
deployment/values.yaml: add annvidia.com/gpu/operator: Exists/effect: NoScheduletoleration to the default list, matching the device plugin chart. Users who settolerationsthemselves are unaffected because the template renders only what is in values.dcgm-exporter.yaml: add the same toleration to the standalone DaemonSet so the raw manifest stays aligned with the chart defaults.README.md: one sentence after thehelm installstep explaining which taints the defaults tolerate and thattolerationsmust be overridden for other taints.tests/static/chart_scheduling_rendering_test.go(new) plus atolerationsfield on the existing render-contract structs intests/static/chart_rbac_rendering_test.go: static chart tests asserting the default DaemonSet toleratesnvidia.com/gpu, that a user-suppliedtolerationslist replaces the defaults, and thatdcgm-exporter.yamlcarries the same toleration.No chart version bump; versions are bumped in release commits in this repository.
How tested
New static tests (
go test ./tests/static -run 'Toleration|Tolerates'), run against the unchangedvalues.yaml/dcgm-exporter.yamlfirst:With the fix applied:
The full static suite (
make test-static/go test ./tests/static) passes, andgofmt -l tests/staticandgo vet ./tests/staticare clean.Rendered the DaemonSet with default values before and after (
helm template test deployment/ --show-only templates/daemonset.yaml).Before (only the control-plane taint is tolerated;
grep -c nvidia.com/gpureturns 0, exit 1):After (
grep -c nvidia.com/gpureturns 1, exit 0):Also verified:
helm lint deployment/passes (1 chart linted, 0 failed).helm template test deployment/ --set 'tolerations[0].key=foo' --set 'tolerations[0].operator=Exists'renders only thefootoleration.dcgm-exporter.yamlstill parses as two documents (DaemonSet, Service) and the DaemonSet pod spec carries the new toleration.Kubernetes e2e tests were not run (no GPU cluster available here).
Links
This change was prepared with an AI agent operated by KR-Ravindra, who reviewed and tested it.