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

k8snetworkplumbingwg / multus-cni / 22919499194
50%
master: 50%

Build:
Build:
LAST BUILD BRANCH: CORENET-6865-rebase
DEFAULT BRANCH: master
Ran 10 Mar 2026 07:06PM UTC
Jobs 1
Files 26
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

10 Mar 2026 06:58PM UTC coverage: 49.672% (-0.5%) from 50.17%
22919499194

Pull #1483

github

bpickard22
Fix certificate rotation race condition in per-node certificates

Add exponential backoff retry logic to handle transient certificate errors
during daemon startup. This prevents crash-loops when pods restart during
the certificate rotation window (~3 seconds) where the symlink is temporarily
removed or the file is empty.

We accomplish this by retrying if we get a tranient error, but still
fail fast on permanent errors such as an RBAC issue or NoCertKey error

Changes:
- Add isTransientCertError() to classify errors as transient vs permanent
- Add exponential backoff retry (100ms, 200ms, 400ms, 800ms, 1.6s) within
  the existing 2-minute CSR approval timeout
- Transient errors (PathError, 'failed to find any PEM data', etc.) are
  retried automatically
- Permanent errors (NoCertKeyError, RBAC issues) fail fast as before
- Add verbose logging on successful retry to aid debugging

Testing
- Tested with missing certificate file during pod restart
- Pods successfully recover and start normally
- All existing unit tests pass (44/44)

Assisted by Claude Sonnet 4.5

Signed-off-by: Benjamin Pickard <bpickard@redhat.com>
Pull Request #1483: Fix certificate rotation race condition in per-node certificates

0 of 53 new or added lines in 1 file covered. (0.0%)

2502 of 5037 relevant lines covered (49.67%)

6.15 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
53
10.33
-3.17% pkg/k8sclient/kubeconfig.go
Jobs
ID Job ID Ran Files Coverage
1 Go- - 22919499194.1 10 Mar 2026 07:06PM UTC 26
49.67
GitHub Action Run
Source Files on build 22919499194
  • Tree
  • List 26
  • Changed 1
  • Source Changed 0
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Pull Request #1483
  • PR Base - master (#22114341924)
  • Delete
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc