mirror of
https://github.com/intel/intel-device-plugins-for-kubernetes.git
synced 2025-06-03 03:59:37 +00:00
![]() grpc.NewClient(), added in grpc-go v1.63, is the preferred way to create a new ClientConn. In most of our usages, moving away from grpc.Dial*() to it is straightforward. However, we've also relied on grpc.Dial*()'s behavior to automatically make a new connection to "test" a connection is successful isn't available anymore. Combined with grpc.WithBlock dialoption this usage is considered "especially bad" way to handle a client connection. The recommended approach to test a server connection is to separately make a connection and watch the connection state to become Ready. This change follows that recommendation. Signed-off-by: Mikko Ylinen <mikko.ylinen@intel.com> |
||
---|---|---|
.. | ||
gpu_plugin_resource_manager_test.go | ||
gpu_plugin_resource_manager.go |