-
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
Render SriovNetworkNodeState before Device Plugin ConfigMap #487
Render SriovNetworkNodeState before Device Plugin ConfigMap #487
Conversation
Device Plugin ConfigMap relies on SriovNetworkNodeState object, so we need to render it earlier. The issue is occured only if node stops to correspond to configDaemonNodeSelector during SR-IOV configuration, so controller will delete SriovNetworkNodeState and won't re-create it again once node starts correspond to configDaemonNodeSelector again.
Thanks for your PR,
To skip the vendors CIs use one of:
|
Pull Request Test Coverage Report for Build 5783839350
💛 - Coveralls |
/test-all |
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.
device plugin config map depends on SriovNetworkNodeState of that node, so it makes sense to sync it first.
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
Though the device plugin config map rendering logic depends on SriovNetworkNodeState.Status
, that is written by the config-daemon. BTW, this PR avoid raising most common errors IMO
Thanks for the review ! can you elaborate ? |
Sure: That value is used only if the policy has But in the end, it probably works even in the above scenario: the policies are reconciled every 5 minutes, and at the second loop every resource should be in place and correctly populated. If that's the case, sorry for the noise. |
That is the case to my understanding. however i think we should fail (and retry reconcile) if nodestate has no status field if its a pre-req for rendering device plugin config. @e0ne |
NetFilter selector depends on PCI address of NICs from the node state. After PR k8snetworkplumbingwg#487 is merged we need to check if node state is updated or return an reconcile error to render device plugin config faster.
NetFilter selector depends on PCI address of NICs from the node state. After PR k8snetworkplumbingwg#487 is merged we need to check if node state is updated or return an reconcile error to render device plugin config faster.
Device Plugin ConfigMap relies on SriovNetworkNodeState object, so we need to render it earlier.
The issue is occured only if node stops to correspond to configDaemonNodeSelector during SR-IOV configuration, so controller will delete SriovNetworkNodeState and won't re-create it again once node starts correspond to configDaemonNodeSelector again.