Skip to content

Conversation

@yevgeny-shnaidman
Copy link
Contributor

MIC image spec is being propagated as is to the MBSC image spec. As part of creating sign/build pod, one of the inputs is the selector field, which defines where the pod should be scheduled. This PR does the following:

  1. Add Selector field to the ModuleImageSpec
  2. module reconciler sets the Selector in the imageSpec variable
  3. changing unit-tests

@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: yevgeny-shnaidman

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 the cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. label Feb 19, 2025
@k8s-ci-robot k8s-ci-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Feb 19, 2025
@yevgeny-shnaidman
Copy link
Contributor Author

/assign @ybettan

@k8s-ci-robot k8s-ci-robot added the size/S Denotes a PR that changes 10-29 lines, ignoring generated files. label Feb 19, 2025
@netlify
Copy link

netlify bot commented Feb 19, 2025

Deploy Preview for kubernetes-sigs-kmm ready!

Name Link
🔨 Latest commit 7433298
🔍 Latest deploy log https://app.netlify.com/sites/kubernetes-sigs-kmm/deploys/67b5f13ee730890008d56ddf
😎 Deploy Preview https://deploy-preview-1022--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 site configuration.

@codecov-commenter
Copy link

codecov-commenter commented Feb 19, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 73.45%. Comparing base (fa23a9b) to head (7433298).
Report is 210 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1022      +/-   ##
==========================================
- Coverage   79.09%   73.45%   -5.65%     
==========================================
  Files          51       72      +21     
  Lines        5109     6046     +937     
==========================================
+ Hits         4041     4441     +400     
- Misses        882     1425     +543     
+ Partials      186      180       -6     

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

KernelVersion string `json:"kernelVersion"`

// selector for pod that should run builds
Selector map[string]string `json:"selector,omitempty"`
Copy link
Contributor

Choose a reason for hiding this comment

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

We already have a selector in the build object. Why do we need another one?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

the selector should be taken from mld: its value is decided based on Selector in Spec and Selector in Build. If Selector in Build is present, then it is taken, otherwise the Spec's Selector is used

Copy link
Contributor

@ybettan ybettan Feb 19, 2025

Choose a reason for hiding this comment

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

Then I think it's the Module controller's job to update the MIC.build.selector (to be passed to MBSC) with the correct value (from module's spec/selector).

I don't think we should add a new selector in MIC and MBSC just to take that decision in MBSC controller. Let's just create the correct build object in MIC to begging with.

WDYT?

@k8s-ci-robot
Copy link
Contributor

@yevgeny-shnaidman: The following tests failed, say /retest to rerun all failed tests or /retest-required to rerun all mandatory failed tests:

Test name Commit Details Required Rerun command
pull-kernel-module-management-lint 3064e57 link true /test pull-kernel-module-management-lint
pull-kernel-module-management-check-api-changes 3064e57 link true /test pull-kernel-module-management-check-api-changes

Full PR test history. Your PR dashboard. Please help us cut down on flakes by linking to an open issue when you hit one in your PR.

Details

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. I understand the commands that are listed here.

MIC image spec is being propagated as is to the MBSC image spec.
As part of creating sign/build pod, one of the inputs is the selector
field, which defines where the pod should be scheduled.
This PR does the following:
1. Add Selector field to the ModuleImageSpec
2. module reconciler sets the Selector in the imageSpec variable
3. changing unit-tests
@yevgeny-shnaidman yevgeny-shnaidman force-pushed the yevgeny/add-selector-to-mic branch from 3064e57 to 7433298 Compare February 19, 2025 14:57
cdvultur pushed a commit to cdvultur/kernel-module-management that referenced this pull request Oct 22, 2025
…sigs#1022)

This test will ensure the bundle built in the PR can be used to upgrade
from the last bundle available of KMM.

Signed-off-by: Yoni Bettan <[email protected]>
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. size/S Denotes a PR that changes 10-29 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants