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

NVIDIA / k8s-operator-libs / 45716250927
65%
main: 63%

Build:
Build:
LAST BUILD BRANCH: pull-request/164
DEFAULT BRANCH: main
Ran 25 Nov 2026 10:50PM UTC
Jobs 1
Files 20
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

25 Nov 2026 10:47PM UTC coverage: 64.907% (+2.0%) from 62.877%
45716250927

push

github

rajathagasthya
Let callers pass the client used by the upgrade state manager

The upgrade state manager creates its own uncached client. Each pass
therefore reads the driver DaemonSets, the driver Pods, and every node
with a driver pod from the API server, also when no upgrade is in
progress. NewClusterUpgradeStateManager and NewCommonUpgradeStateManager
now take the client as a parameter, so that an operator can pass its
manager's client and read these objects from its cache. This changes
both signatures, and a nil client returns an error. To keep the previous
behavior, a caller passes an uncached client created with upgrade.Scheme.
Cache transforms need to preserve Node Spec.Unschedulable and the Ready
condition, which the library reads. After each node patch, the provider
reads the node until it shows the change. A cached read usually returns
the old object first, so this wait now reads every 10 ms instead of every
1 s. A wait that times out returns an error that names the node.

With a cached client, a requestor may not see a NodeMaintenance that
another requestor created. Its Create then returns AlreadyExists, which
the library treated as success, so the requestor was never added to
AdditionalRequestors. createNodeMaintenance now returns an error, so the
next pass adds the requestor to the existing object. A requestor now
reuses a NodeMaintenance that it owns for any name prefix. Before, with a
custom prefix, it called Create again and relied on AlreadyExists. A node
leaves node-maintenance-required only if its requestor owns the
NodeMaintenance or is in AdditionalRequestors. A requestor now releases
the NodeMaintenance before it moves the node to upgrade-done, so that
the next pass retries a release that fails, for example with a conflict.

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

39 of 43 new or added lines in 4 files covered. (90.7%)

1537 of 2368 relevant lines covered (64.91%)

0.73 hits per line

Uncovered Changes

Lines Coverage ∆ File
2
74.62
8.46% pkg/upgrade/node_upgrade_state_provider.go
2
62.5
8.48% pkg/upgrade/upgrade_requestor.go
Jobs
ID Job ID Ran Files Coverage
1 45716250927.1 25 Nov 2026 10:50PM UTC 20
64.91
GitHub Action Run
Source Files on build 45716250927
  • Tree
  • List 20
  • Changed 4
  • Source Changed 4
  • Coverage Changed 4
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #45716250927
  • ff50b2ae on github
  • Prev Build on main (#45277310127)
  • Next Build on pull-request/164 (#46461204054)
  • Delete
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