intel-device-plugins-for-ku.../cmd/gpu_plugin/rm
Mikko Ylinen 4d858c5364 pkg/deviceplugin: move to grpc.NewClient()
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>
2024-05-28 08:17:06 +03:00
..
gpu_plugin_resource_manager_test.go pkg/deviceplugin: move to grpc.NewClient() 2024-05-28 08:17:06 +03:00
gpu_plugin_resource_manager.go ci: move to golangci-lint v1.57.2 2024-05-02 09:18:27 +03:00