Skip to content

Make slight changes to the CRDs #736

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Feb 13, 2024

Conversation

qbarrand
Copy link
Contributor

@qbarrand qbarrand commented Feb 13, 2024

Module: make moduleName an optional field.
ManagedClusterModule: make spokeNamespace a required field.

/cc @mresvanis

@k8s-ci-robot k8s-ci-robot added the cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. label Feb 13, 2024
Copy link

netlify bot commented Feb 13, 2024

Deploy Preview for kubernetes-sigs-kmm ready!

Name Link
🔨 Latest commit cba7af2
🔍 Latest deploy log https://app.netlify.com/sites/kubernetes-sigs-kmm/deploys/65cb7a596e262d00082836e2
😎 Deploy Preview https://deploy-preview-736--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.

@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: qbarrand

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

The pull request process is described here

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. size/M Denotes a PR that changes 30-99 lines, ignoring generated files. labels Feb 13, 2024
@codecov-commenter
Copy link

Codecov Report

Attention: 64 lines in your changes are missing coverage. Please review.

Comparison is base (fa23a9b) 79.09% compared to head (9b009af) 78.40%.
Report is 12 commits behind head on main.

Files Patch % Lines
internal/controllers/module_nmc_reconciler.go 66.07% 13 Missing and 6 partials ⚠️
internal/webhook/module.go 70.96% 6 Missing and 3 partials ⚠️
...ternal/controllers/build_sign_events_reconciler.go 36.36% 5 Missing and 2 partials ⚠️
...ontrollers/node_label_module_version_reconciler.go 12.50% 7 Missing ⚠️
internal/webhook/namespace.go 61.53% 5 Missing ⚠️
...ternal/controllers/device_plugin_pod_reconciler.go 42.85% 3 Missing and 1 partial ⚠️
internal/controllers/device_plugin_reconciler.go 20.00% 4 Missing ⚠️
internal/controllers/build_sign_reconciler.go 25.00% 3 Missing ⚠️
...rnal/controllers/preflightvalidation_reconciler.go 40.00% 3 Missing ⚠️
internal/meta/labels.go 0.00% 3 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #736      +/-   ##
==========================================
- Coverage   79.09%   78.40%   -0.69%     
==========================================
  Files          51       49       -2     
  Lines        5109     3960    -1149     
==========================================
- Hits         4041     3105     -936     
+ Misses        882      663     -219     
- Partials      186      192       +6     

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

@qbarrand
Copy link
Contributor Author

/hold

@k8s-ci-robot k8s-ci-robot added the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Feb 13, 2024
Module: make moduleName an optional field.
ManagedClusterModule: make spokeNamespace a required field.
@qbarrand qbarrand force-pushed the modulename-not-required branch from 9b009af to cba7af2 Compare February 13, 2024 14:19
@qbarrand
Copy link
Contributor Author

/unhold

@k8s-ci-robot k8s-ci-robot removed the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Feb 13, 2024
@mresvanis
Copy link
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 Feb 13, 2024
@k8s-ci-robot k8s-ci-robot merged commit af2c88b into kubernetes-sigs:main Feb 13, 2024
@qbarrand qbarrand deleted the modulename-not-required branch February 13, 2024 14:46
qbarrand added a commit to qbarrand/kernel-module-management that referenced this pull request Mar 6, 2024
Module: make moduleName an optional field.
ManagedClusterModule: make spokeNamespace a required field.
k8s-ci-robot pushed a commit that referenced this pull request Mar 6, 2024
* Add a webhook for namespace deletion (#719)

This commit makes KMM set the kmm.node.k8s.io/contains-modules label on
all namespaces that contain at least one Module.
It also adds a new webhook to the bundle and the corresponding handler
in the manager.
The new webhook rejects namespace deletions if the
kmm.node.k8s.io/contains-modules label is present on the namespace.
This avoids entering situations where the namespace is being deleted and
KMM cannot create unloading Pods to honor Module deletion.

* Restrict checks for image existence (#734)

Before populating the NodeModulesConfig object, only check if built or
signed image exist on the registry.
Add a log message when the NodeModulesConfig is not populated for that
reason.

* Make slight changes to the CRDs (#736)

Module: make moduleName an optional field.
ManagedClusterModule: make spokeNamespace a required field.
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