• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

NVIDIA / gpu-operator / 31182784777
38%
main: 38%

Build:
Build:
LAST BUILD BRANCH: pull-request/2748
DEFAULT BRANCH: main
Ran 07 Aug 2026 01:35PM UTC
Jobs 1
Files 73
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

07 Aug 2026 01:27PM UTC coverage: 38.466% (+0.08%) from 38.385%
31182784777

push

github

rajathagasthya
Mount ServiceAccount token when dcgm-exporter env needs API access

The dcgm-exporter DaemonSet sets automountServiceAccountToken=false and
re-enables it only when pod metadata enrichment is turned on through the
typed enablePodLabels/enablePodUID fields. Users who configure the same
features through raw dcgmExporter.env are missed by that condition, and
setting DCGM_EXPORTER_CONFIGMAP_DATA crashes the exporter on startup
since it cannot read the ServiceAccount token. This worked before the
token was made opt-in.

Mount the token when the user-provided env reads a ConfigMap or enables
pod labels / pod UID. A DCGM_EXPORTER_CONFIGMAP_DATA value of "none" is
the exporter default meaning no ConfigMap is read, so it does not count.
Configurations that make no API calls keep the default.

Apply the same env check to the cluster-scoped RBAC gate. Enrichment
through raw env otherwise got a token but no matching permissions,
leaving the pod informer with only the namespaced Role, which grants pod
reads in the operator namespace without watch. The ConfigMap case keeps
a separate condition since it needs no cluster-scoped RBAC: the
namespaced Role already grants configmaps get/list and its RoleBinding
is ungated.

The daemonset test compared gpuv1.EnvVar against the container's
corev1.EnvVar, which can never be equal. Both render as v1.EnvVar in
failure output, so the mismatch stayed invisible until a test case set
env on the ClusterPolicy.

Signed-off-by: Rajath Agasthya <ragasthya@nvidia.com>

24 of 24 new or added lines in 1 file covered. (100.0%)

5591 of 14535 relevant lines covered (38.47%)

0.44 hits per line

Jobs
ID Job ID Ran Files Coverage
1 31182784777.1 07 Aug 2026 01:35PM UTC 73
38.47
GitHub Action Run
Source Files on build 31182784777
  • Tree
  • List 73
  • Changed 1
  • Source Changed 1
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #31182784777
  • 0cc3160b on github
  • Prev Build on main (#31163590972)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc