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

NVIDIA / nodewright / 45515553054
85%

Build:
DEFAULT BRANCH: main
Ran 25 Nov 2026 12:26AM UTC
Jobs 1
Files 60
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 12:07AM UTC coverage: 84.578% (-0.02%) from 84.594%
45515553054

push

github

web-flow
feat(chart): add an opt-in package policy (#1066)

* feat(chart): add an opt-in package policy

Writing a NodeWright is root on every node it selects, and RBAC on the
CRD is all or nothing. A new packagePolicy chart block narrows that: when
enabled, the chart renders one ValidatingAdmissionPolicy and its binding,
so the kube-apiserver refuses package changes a deny entry matches, or,
once an allow rule exists, changes no allow rule grants to the requester.
Rules match registries, images, versions and digests after normalising
image references the way the container runtime resolves them. Each allow
rule is granted to anyone, to named ServiceAccounts, users and groups, or
through an RBAC use check on a virtual packagerules resource; the chart
creates no roles.

Every package change is classified as an Add, Update or Remove; a change
to any other spec field counts as an Update of every package, an image
swap is also checked as a Remove of the old image, and deleting a CR
removes every package in it. Removals, and updates that only start an
uninstall, are never denied, so packages deployed before the policy can
be retired; cancelling an uninstall re-installs, so it is checked.
Legacy Skyhook creates and updates are matched too, and the operator is
exempt except when it changes a NodeWright's spec, which only its
migration mirror does.

It is off by default and the default render is unchanged. Enabling it
requires Kubernetes 1.30 and fails the install below that. Rendering is
covered by helm-template-test, and what the policy enforces by a new
envtest suite in operator/internal/packagepolicy that applies the
rendered policy to a real kube-apiserver as impersonated users, so
make unit-tests now installs helm.

Closes #1058

Signed-off-by: Brian Lockwood <lockwobr@gmail.com>

* test(e2e): install the package policy on a real cluster

The envtest suite proves what the package policy decides, but not what
only a real install shows. This chainsaw test installs ... (continued)

10705 of 12657 relevant lines covered (84.58%)

7.81 hits per line

Coverage Regressions

Lines Coverage ∆ File
4
85.99
-0.07% operator/internal/controller/nodewright_controller.go
Jobs
ID Job ID Ran Files Coverage
1 45515553054.1 25 Nov 2026 12:26AM UTC 60
84.58
GitHub Action Run
Source Files on build 45515553054
  • Tree
  • List 60
  • Changed 1
  • Source Changed 0
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #45515553054
  • b0eedee2 on github
  • Prev Build on main (#45512446796)
  • Next Build on main (#45518681526)
  • 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