Add a Timeout in the contivK8s client.
When the kubelet use the cni plugin (contiv),it will execute the contivk8s client.Then the contivk8s will
post a request to the netplugin.
If sometimes the netplugin can not get the p.lock.The netplugin will be locked.And the contivk8s would
not get any response.Then the kubelet will also locked by this.
type of testing done (both manual and automated)
Manual test have been done.
TODO
[ ] Tests
use k8s to add a pod by contiv.
lock the plugin.
3.The contivk8s can timeout by set the timeout time.
Description of the changes
Type of fix: New feature
Please describe:
Add a Timeout in the contivK8s client. When the kubelet use the cni plugin (contiv),it will execute the contivk8s client.Then the contivk8s will post a request to the netplugin. If sometimes the netplugin can not get the p.lock.The netplugin will be locked.And the contivk8s would not get any response.Then the kubelet will also locked by this.
TODO
[ ] Tests
[ ] Documentation