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

rollandf / sriov-network-operator / 21030782016
63%
master: 63%

Build:
Build:
LAST BUILD BRANCH: karg-temp
DEFAULT BRANCH: master
Ran 15 Jan 2026 12:19PM UTC
Jobs 1
Files 107
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

15 Jan 2026 12:08PM UTC coverage: 62.698%. First build
21030782016

push

github

rollandf
daemon: fix kernel argument management and logging errors

This commit addresses several issues in the sriov-network-config-daemon
relating to host configuration management and observability.

1. Fix kargs.sh for read-only root filesystems:
   The daemon now uses the host's /tmp directory (via chroot) for temporary
   workspace files. This allows the script to function correctly when the
   container is deployed with 'readOnlyRootFilesystem: true', which previously
   caused 'cp' and 'grep' failures.

2. Improve Ubuntu kargs robustness:
   - Switched from 'grep -P' to 'grep -E' for better compatibility with minimal
     container environments.
   - Added idempotency checks to verify if a kernel argument is already present
     before attempting modification, preventing duplicate entries in GRUB and
     /proc/cmdline.
   - Added support for fallbacks between GRUB_CMDLINE_LINUX and
     GRUB_CMDLINE_LINUX_DEFAULT.
   - Refactored parsing logic to safely handle variable expansions and complex
     quoting in /etc/default/grub.

3. Fix logging serialization bug:
   Updated NodeReconciler to correctly call the Name() method of the main
   plugin when logging errors. Previously, passing the function pointer directly
   caused "json: unsupported type: func() string" errors, masking the actual
   reconciliation failures.

4. Stabilize OS detection and return codes:
   Refactored OS detection in kargs.sh to be more reliable and replaced 'let'
   increments with standard arithmetic expansion to ensure consistent exit codes.

Signed-off-by: Fred Rolland <frolland@nvidia.com>

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

9347 of 14908 relevant lines covered (62.7%)

0.7 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
1
50.4
pkg/daemon/daemon.go
Jobs
ID Job ID Ran Files Coverage
1 21030782016.1 15 Jan 2026 12:19PM UTC 107
62.7
GitHub Action Run
Source Files on build 21030782016
  • Tree
  • List 107
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #21030782016
  • 231c6a83 on github
  • Next Build on karg-temp (#21030842510)
  • 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