-
Notifications
You must be signed in to change notification settings - Fork 148
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
Fix the cache save #298
Fix the cache save #298
Conversation
Hi @zeeke @Eoghan1232 please review CRITICAL bug in the cni |
without this PR this is the info saved in the cache folder
we don't have DeviceID so the cni failed on cmdDel function |
Pull Request Test Coverage Report for Build 9212724446Details
💛 - Coveralls |
what changed? The marshal of an interface that holds a pointer is the value that the pointer points to. This has been here for a while. What am I missing? |
Hi @mlguerrero12 thanks for the comment! I don't know exactly. I am trying to understand I was able to find that the MTU PR was the one that introduced the change |
/hold |
Hi @mlguerrero12 I found the issue. the bump of the CNI package. the CNI package overrides the default marshal function https://github.com/containernetworking/cni/blob/main/pkg/types/types.go#L86 /hold cancel |
75588f1
to
eb606ae
Compare
Good catch @SchSeba. I suggest to change the signature of I was going to suggest, as a nit, to ignore the field MTU for marshalling/unmarshalling by adding |
+1 on changing the signature of SaveNetConf: other than that. LGTM |
Hi @mlguerrero12 @zeeke thanks for the comment please take another look when you have time |
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.
LGTM
pkg/utils/utils.go
Outdated
@@ -4,6 +4,7 @@ import ( | |||
"bytes" | |||
"encoding/json" | |||
"fmt" | |||
sriovtypes "github.com/k8snetworkplumbingwg/sriov-cni/pkg/types" |
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.
nit: move it outside of this group
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.
yep for some reason my IDE stop creating the nice groups...
done :)
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.
Awsome! LGTM.
I just squash the commits waiting for a clean CI and I will merge this one |
before we send a pointer to the netConf object so the marshal function didn't parse all the information needed Signed-off-by: Sebastian Sch <[email protected]>
36570f5
into
k8snetworkplumbingwg:master
before we send a pointer to the netConf object so the marshal function didn't parse all the information needed