Skip to content
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

Changing Node interface and updating NMC controller #1220

Conversation

yevgeny-shnaidman
Copy link
Member

This PR is a preparation for the fixes needed for cluster upgrade KMM implementation. We are adding a new function to the node interface, that determines whether a node has been rebooted while a kernel module was loaded. This PR also updates NMC controller to use this API and refactors the unit-test

Copy link

openshift-ci bot commented Sep 25, 2024

[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

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

Copy link

netlify bot commented Sep 25, 2024

Deploy Preview for openshift-kmm ready!

Name Link
🔨 Latest commit 72c6040
🔍 Latest deploy log https://app.netlify.com/sites/openshift-kmm/deploys/66f42d54efbc7d000801b9d4
😎 Deploy Preview https://deploy-preview-1220--openshift-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.

@yevgeny-shnaidman
Copy link
Member Author

/assign @ybettan
/assign @mresvanis

@yevgeny-shnaidman
Copy link
Member Author

Fixes 1219

@yevgeny-shnaidman
Copy link
Member Author

/test check-api-changes

@yevgeny-shnaidman
Copy link
Member Author

/test e2e

@yevgeny-shnaidman
Copy link
Member Author

/test e2e-hub

@yevgeny-shnaidman
Copy link
Member Author

/test operator-upgrade

@yevgeny-shnaidman
Copy link
Member Author

/test e2e

@yevgeny-shnaidman
Copy link
Member Author

ci/prow/e2e-hub

@yevgeny-shnaidman
Copy link
Member Author

/test e2e-hub

@yevgeny-shnaidman
Copy link
Member Author

/test operator-upgrade

@@ -1356,16 +1315,16 @@ var _ = Describe("nmcReconcilerHelperImpl_RecordEvents", func() {
var (
client *testclient.MockClient
fakeRecorder *record.FakeRecorder
n node.Node
wh nmcReconcilerHelper
//nm *node.MockNode
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
//nm *node.MockNode

Copy link
Member Author

Choose a reason for hiding this comment

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

fixed

Copy link
Member Author

Choose a reason for hiding this comment

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

fixed

)

BeforeEach(func() {
ctrl := gomock.NewController(GinkgoT())
client = testclient.NewMockClient(ctrl)
n = node.NewNode(client)
//nm = node.NewMockNode(ctrl)
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
//nm = node.NewMockNode(ctrl)

Copy link
Member Author

Choose a reason for hiding this comment

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

fixed

This PR is a preparation for the fixes needed for cluster upgrade KMM
implementation. We are adding a new function to the node interface,
that determines whether a node has been rebooted while a kernel module
was loaded. This PR also updates NMC controller to use this API and
refactors the unit-test
@yevgeny-shnaidman yevgeny-shnaidman force-pushed the yevgeny/cherry-pick-397672464d06ec9f131fea080e6034d6e315ce37 branch from 6a736c4 to 72c6040 Compare September 25, 2024 15:33
@mresvanis
Copy link
Member

/lgtm

@openshift-ci openshift-ci bot added the lgtm label Sep 25, 2024
@openshift-merge-bot openshift-merge-bot bot merged commit aed4d51 into rh-ecosystem-edge:main Sep 25, 2024
19 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants