Skip to content

Conversation

@yevgeny-shnaidman
Copy link
Contributor

In the current implementation of the build and sign flow, build_sign controller uses 2 packages, build and sign, to verify whether build/sign must be executed, to actually create build/sign pod and to run garbage collector on he successfull pods. In many cases, those 2 packages are very much the same, especially in where the package manager must decide what to do (build pod, delete pod, etc)
With the introduction of the MBSC controller, the flow is changing and it makes sense to unify those packages into one package. There is not need to decide if the build/sign should be executed, since that decision is taken by the MIC controller

This PR starts with creating the buildsing package and unifying Helper interfaces both in sign and build package into one Helper interface: 1) create Helper interface and implementation for buildsign package 2) move the existing code that was previously using build.Helper and
sign.Helper interface to start using unified interface

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

/assign @ybettan

@k8s-ci-robot k8s-ci-robot added the size/L Denotes a PR that changes 100-499 lines, ignoring generated files. label Feb 26, 2025
@netlify
Copy link

netlify bot commented Feb 26, 2025

Deploy Preview for kubernetes-sigs-kmm ready!

Name Link
🔨 Latest commit 0a0e358
🔍 Latest deploy log https://app.netlify.com/sites/kubernetes-sigs-kmm/deploys/67c03066f8b7d5000822e4bb
😎 Deploy Preview https://deploy-preview-1033--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 26, 2025

Codecov Report

Attention: Patch coverage is 83.13253% with 14 lines in your changes missing coverage. Please review.

Project coverage is 73.30%. Comparing base (fa23a9b) to head (0a0e358).
Report is 222 commits behind head on main.

Files with missing lines Patch % Lines
internal/buildsign/helper.go 91.54% 4 Missing and 2 partials ⚠️
cmd/manager-hub/main.go 0.00% 3 Missing ⚠️
cmd/manager/main.go 0.00% 3 Missing ⚠️
internal/module/kernelmapper.go 66.66% 2 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1033      +/-   ##
==========================================
- Coverage   79.09%   73.30%   -5.80%     
==========================================
  Files          51       73      +22     
  Lines        5109     6214    +1105     
==========================================
+ Hits         4041     4555     +514     
- Misses        882     1471     +589     
- Partials      186      188       +2     

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

In the current implementation of the build and sign flow, build_sign
controller uses 2 packages, build and sign, to verify whether build/sign
must be executed, to actually create build/sign pod and to run garbage
collector on he successfull pods. In many cases, those 2 packages are
very much the same, especially in where the package manager must decide
what to do (build pod, delete pod, etc)
With the introduction of the MBSC controller, the flow is changing and
it makes sense to unify those packages into one package. There is not
need to decide if the build/sign should be executed, since that decision
is taken by the MIC controller

This PR starts with creating the buildsing package and unifying Helper
interfaces both in sign and build package into one Helper interface:
1) create Helper interface and implementation for buildsign package
2) move the existing code that was previously using build.Helper and
   sign.Helper interface to start using unified interface
@ybettan
Copy link
Contributor

ybettan commented Feb 27, 2025

/lgtm

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Feb 27, 2025
@k8s-ci-robot k8s-ci-robot merged commit 35b77cb into kubernetes-sigs:main Feb 27, 2025
22 checks passed
cdvultur pushed a commit to cdvultur/kernel-module-management that referenced this pull request Oct 22, 2025
…netes-sigs#1033)

Bumps [github.com/prometheus/client_golang](https://github.com/prometheus/client_golang) from 1.18.0 to 1.19.0.
- [Release notes](https://github.com/prometheus/client_golang/releases)
- [Changelog](https://github.com/prometheus/client_golang/blob/v1.19.0/CHANGELOG.md)
- [Commits](prometheus/client_golang@v1.18.0...v1.19.0)

---
updated-dependencies:
- dependency-name: github.com/prometheus/client_golang
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
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/L Denotes a PR that changes 100-499 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants