Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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
Support for acquiring DDP profile using devlink #387
Support for acquiring DDP profile using devlink #387
Changes from 16 commits
9091c2f
14de09e
30ad4a0
8944b68
c2a3125
0e23ec3
5d082fb
dd8961f
6a6895e
f259821
bc45ca6
d30a3c6
6050f33
8a2d8c6
2c3628d
13ec6f9
e205cdb
b018ba3
c29e684
4b2eace
c74f66e
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we already have a netlink provider [1] shouldnt we extend it with the new method ? it already has netlink calls to devlink.
then, the rest of the functions in this file would be moved to ddp.go as they are pretty specific for ddp.
in tests (ddp_test.go) we would use a mocked version of NetlinkProvider instead of defining a fake function.
[1]
sriov-network-device-plugin/pkg/utils/netlink_provider.go
Line 28 in d59e6ab
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi @adrianchiris yes 100% agree.
I migrated the code, but have hit an issue with the mockery.
I am trying to figure out the reason, but this is blocking me from making the changes, as I cannot regenerate the mocked version of the NetlinkProvider Interface.
I also did a test of moving the code to a test project and trying to compile but still hit the same issues with mockery.
Has anyone come across an issue like this with mockery before?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I found this one argoproj/argo-workflows#8251
can you try to build the mockery version please?