-
Notifications
You must be signed in to change notification settings - Fork 114
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
Re-introduce the check if the number of VFs is 0 #472
Re-introduce the check if the number of VFs is 0 #472
Conversation
Thanks for your PR,
To skip the vendors CIs use one of:
|
aa401d8
to
7af9cf7
Compare
Pull Request Test Coverage Report for Build 5541150289
💛 - Coveralls |
Thanks for your PR,
To skip the vendors CIs use one of:
|
cc @adrianchiris @e0ne @zeeke @Eoghan1232 please take a look :) |
7af9cf7
to
b15ceab
Compare
Thanks for your PR,
To skip the vendors CIs use one of:
|
Thanks @zeeke can you give another round? |
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
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!
// once https://github.com/kubernetes/kubernetes/issues/109595 will be fixed | ||
if ifaceStatus.NumVfs == 0 { | ||
glog.V(2).Infof("generic-plugin needDrainNode(): no need drain, for PCI address %s current NumVfs is 0", iface.PciAddress) | ||
break |
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: return here like we do below ? WDYT ?
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.
no we can't because we need to continue and check all the other status vs desire.
in the NeedUpdate case we return because if we find even one that needs to update we need to drain, but that is not the case if we find one that doesn't need to drain we need to check for all of them
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.
ah, didnt see that nested loop. (it was not showing in browser) :\
yes you are right !
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.
small nits, i see it already got 2 LGTMs,
up 2 u if you want to address b4 merging this one :)
now that the issue with kubelet with fixed all the way to k8s 1.25 we can add again the check if the number of existing vfs is 0 there is no need to drain the node because there are no workloads running with vfs from that nic Signed-off-by: Sebastian Sch <[email protected]>
b15ceab
to
6b946e9
Compare
Thanks for your PR,
To skip the vendors CIs use one of:
|
Thanks for the quick review folks! merging |
now that the issue with kubelet with fixed all the way to k8s 1.25 we can add again the check if the number of existing vfs is 0 there is no need to drain the node because there are no workloads running with vfs from that nic