Skip to content

Add DeviceClass watch to DRA reconciler#1288

Merged
k8s-ci-robot merged 1 commit into
kubernetes-sigs:mainfrom
TomerNewman:dra-deviceclass-watch
Jun 17, 2026
Merged

Add DeviceClass watch to DRA reconciler#1288
k8s-ci-robot merged 1 commit into
kubernetes-sigs:mainfrom
TomerNewman:dra-deviceclass-watch

Conversation

@TomerNewman

Copy link
Copy Markdown
Collaborator

Watch DeviceClass resources so the controller reacts to external drift (e.g. manual deletion). Uses filter.HasLabel predicate to only process KMM-managed DeviceClasses. Also adds list, watch, and deletecollection RBAC verbs for the deviceclasses resource.


/cc @yevgeny-shnaidman
/assign @yevgeny-shnaidman

@netlify

netlify Bot commented Jun 17, 2026

Copy link
Copy Markdown

Deploy Preview for kubernetes-sigs-kmm ready!

Name Link
🔨 Latest commit 0963150
🔍 Latest deploy log https://app.netlify.com/projects/kubernetes-sigs-kmm/deploys/6a324a4dbe324300089ef57f
😎 Deploy Preview https://deploy-preview-1288--kubernetes-sigs-kmm.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@k8s-ci-robot

Copy link
Copy Markdown
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: TomerNewman

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@k8s-ci-robot k8s-ci-robot added approved Indicates a PR has been approved by an approver from all required OWNERS files. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. size/M Denotes a PR that changes 30-99 lines, ignoring generated files. labels Jun 17, 2026
@codecov-commenter

codecov-commenter commented Jun 17, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 0% with 13 lines in your changes missing coverage. Please review.
✅ Project coverage is 73.50%. Comparing base (fa23a9b) to head (0963150).
⚠️ Report is 383 commits behind head on main.

Files with missing lines Patch % Lines
internal/filter/filter.go 0.00% 8 Missing ⚠️
internal/controllers/dra_reconciler.go 0.00% 5 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1288      +/-   ##
==========================================
- Coverage   79.09%   73.50%   -5.59%     
==========================================
  Files          51       67      +16     
  Lines        5109     4990     -119     
==========================================
- Hits         4041     3668     -373     
- Misses        882     1153     +271     
+ Partials      186      169      -17     

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@TomerNewman TomerNewman force-pushed the dra-deviceclass-watch branch from 26a28fa to 78fa1ae Compare June 17, 2026 07:06
Comment thread internal/controllers/dra_reconciler.go Outdated
)
}

func deviceClassToModuleReconcileRequest(_ context.Context, obj client.Object) []reconcile.Request {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lets move it to filter also

@TomerNewman TomerNewman force-pushed the dra-deviceclass-watch branch from 78fa1ae to 1191ccf Compare June 17, 2026 07:17
Watch DeviceClass resources so the controller reacts to external
drift (e.g. manual deletion). Uses filter.HasLabel predicate to
only process KMM-managed DeviceClasses. Also adds list, watch, and
deletecollection RBAC verbs for the deviceclasses resource.
@TomerNewman TomerNewman force-pushed the dra-deviceclass-watch branch from 1191ccf to 0963150 Compare June 17, 2026 07:18
@yevgeny-shnaidman

Copy link
Copy Markdown
Contributor

/lgtm

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Jun 17, 2026
@k8s-ci-robot k8s-ci-robot merged commit dd9c2fa into kubernetes-sigs:main Jun 17, 2026
23 checks passed
@TomerNewman TomerNewman deleted the dra-deviceclass-watch branch June 17, 2026 07:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

approved Indicates a PR has been approved by an approver from all required OWNERS files. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. lgtm "Looks good to me", indicates that a PR is ready to be merged. size/M Denotes a PR that changes 30-99 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants