- Sort Score
- Result 10 results
- Languages All
Results 1 - 3 of 3 for NewDRAPluginClient (0.62 sec)
-
pkg/kubelet/cm/dra/plugin/client_test.go
// we call `NodePrepareResource` 2 times and check whether a new connection is created or the same is reused for i := 0; i < 2; i++ { wg.Add(1) go func() { defer wg.Done() client, err := NewDRAPluginClient("dummy-plugin") if err != nil { t.Error(err) return } req := &drapbv1alpha3.NodePrepareResourcesRequest{ Claims: []*drapbv1alpha3.Claim{ {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Apr 19 16:27:05 UTC 2024 - 8.1K bytes - Viewed (0) -
pkg/kubelet/cm/dra/plugin/client.go
import ( "context" "fmt" "time" "google.golang.org/grpc" "k8s.io/klog/v2" drapb "k8s.io/kubelet/pkg/apis/dra/v1alpha3" ) const PluginClientTimeout = 45 * time.Second func NewDRAPluginClient(pluginName string) (drapb.NodeClient, error) { if pluginName == "" { return nil, fmt.Errorf("plugin name is empty") } existingPlugin := draPlugins.get(pluginName) if existingPlugin == nil {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Apr 19 16:27:05 UTC 2024 - 2.9K bytes - Viewed (0) -
pkg/kubelet/cm/dra/manager.go
// We could try to continue, but that would make the code more complex. for pluginName, claims := range batches { // Call NodePrepareResources RPC for all resource handles. client, err := dra.NewDRAPluginClient(pluginName) if err != nil { return fmt.Errorf("failed to get DRA Plugin client for plugin name %s: %v", pluginName, err) }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri May 03 13:23:29 UTC 2024 - 19.4K bytes - Viewed (0)