Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 27 for device_plugin (0.31 sec)

  1. pkg/kubelet/cm/devicemanager/manager_test.go

    	for _, d := range resp.Devices {
    		devices = append(devices, *d)
    	}
    	m.callback(r, devices)
    }
    
    func tmpSocketDir() (socketDir, socketName, pluginSocketName string, err error) {
    	socketDir, err = os.MkdirTemp("", "device_plugin")
    	if err != nil {
    		return
    	}
    	socketName = filepath.Join(socketDir, "server.sock")
    	pluginSocketName = filepath.Join(socketDir, "device-plugin.sock")
    	os.MkdirAll(socketDir, 0755)
    	return
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 04 06:25:43 UTC 2024
    - 65K bytes
    - Viewed (0)
  2. pkg/kubelet/pluginmanager/pluginwatcher/plugin_watcher_test.go

    	for i := 0; i < 10; i++ {
    		socketPath := filepath.Join(socketDir, fmt.Sprintf("plugin-%d.sock", i))
    		pluginName := fmt.Sprintf("example-plugin-%d", i)
    
    		p := NewTestExamplePlugin(pluginName, registerapi.DevicePlugin, socketPath, supportedVersions...)
    		require.NoError(t, p.Serve("v1beta1", "v1beta2"))
    
    		pluginInfo := GetPluginInfo(p)
    		waitForRegistration(t, pluginInfo.SocketPath, dsw)
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Aug 04 06:56:50 UTC 2023
    - 8K bytes
    - Viewed (0)
  3. pkg/kubelet/cm/devicemanager/endpoint_test.go

    	return &mockPluginManager{
    		func(string) error { return nil },
    		func(string, plugin.DevicePlugin) error { return nil },
    		func(string) {},
    		func(string, *pluginapi.ListAndWatchResponse) {},
    	}
    }
    
    type mockPluginManager struct {
    	cleanupPluginDirectory     func(string) error
    	pluginConnected            func(string, plugin.DevicePlugin) error
    	pluginDisconnected         func(string)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Nov 08 16:05:48 UTC 2022
    - 7.6K bytes
    - Viewed (0)
  4. pkg/kubelet/pluginmanager/reconciler/reconciler_test.go

    		asw,
    	)
    	reconciler.AddHandler(registerapi.DevicePlugin, cache.PluginHandler(di))
    
    	// Start the reconciler to fill ASW.
    	stopChan := make(chan struct{})
    	defer close(stopChan)
    	go reconciler.Run(stopChan)
    	socketPath := filepath.Join(socketDir, "plugin.sock")
    	pluginName := fmt.Sprintf("example-plugin")
    	p := pluginwatcher.NewTestExamplePlugin(pluginName, registerapi.DevicePlugin, socketPath, supportedVersions...)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat Mar 16 14:21:15 UTC 2024
    - 10.5K bytes
    - Viewed (0)
  5. pkg/kubelet/cm/devicemanager/plugin/v1beta1/api.go

    import (
    	api "k8s.io/kubelet/pkg/apis/deviceplugin/v1beta1"
    )
    
    // RegistrationHandler is an interface for handling device plugin registration
    // and plugin directory cleanup.
    type RegistrationHandler interface {
    	CleanupPluginDirectory(string) error
    }
    
    // ClientHandler is an interface for handling device plugin connections.
    type ClientHandler interface {
    	PluginConnected(string, DevicePlugin) error
    	PluginDisconnected(string)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Nov 02 11:05:20 UTC 2022
    - 1.9K bytes
    - Viewed (0)
  6. pkg/kubelet/cm/devicemanager/plugin/v1beta1/client.go

    	"sync"
    	"time"
    
    	"google.golang.org/grpc"
    	"google.golang.org/grpc/credentials/insecure"
    
    	"k8s.io/klog/v2"
    	api "k8s.io/kubelet/pkg/apis/deviceplugin/v1beta1"
    )
    
    // DevicePlugin interface provides methods for accessing Device Plugin resources, API and unix socket.
    type DevicePlugin interface {
    	API() api.DevicePluginClient
    	Resource() string
    	SocketPath() string
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Oct 24 21:35:13 UTC 2023
    - 3.8K bytes
    - Viewed (0)
  7. hack/.import-aliases

      "k8s.io/kubernetes/pkg/kubelet/apis/config/v1beta1": "kubeletconfigv1beta1",
      "k8s.io/kubernetes/pkg/kubelet/apis/config/v1": "kubeletconfigv1",
      "k8s.io/kubelet/pkg/apis/deviceplugin/v1alpha": "kubeletdevicepluginv1alpha",
      "k8s.io/kubelet/pkg/apis/deviceplugin/v1beta1": "kubeletdevicepluginv1beta1",
      "k8s.io/kubelet/pkg/apis/pluginregistration/v1": "kubeletpluginregistrationv1",
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Aug 17 05:27:21 UTC 2023
    - 3.3K bytes
    - Viewed (0)
  8. pkg/kubelet/pluginmanager/pluginwatcher/README.md

    - Register is called against internal plugin type handler.
    - NotifyRegistrationStatus is called against socket to indicate registration result.
    
    During plugin initialization phase, Kubelet will issue Plugin specific calls
    (e.g: DevicePlugin::GetDevicePluginOptions).
    
    Once Kubelet determines that it is ready to use your plugin it will issue a
    Registration.NotifyRegistrationStatus gRPC call.
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu May 30 23:00:59 UTC 2019
    - 3.6K bytes
    - Viewed (0)
  9. pkg/kubelet/cm/devicemanager/plugin/v1beta1/stub.go

    	"google.golang.org/grpc/credentials/insecure"
    
    	"k8s.io/apimachinery/pkg/util/wait"
    	"k8s.io/klog/v2"
    	pluginapi "k8s.io/kubelet/pkg/apis/deviceplugin/v1beta1"
    	watcherapi "k8s.io/kubelet/pkg/apis/pluginregistration/v1"
    )
    
    // Stub implementation for DevicePlugin.
    type Stub struct {
    	devs                       []*pluginapi.Device
    	socket                     string
    	resourceName               string
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Oct 17 11:19:10 UTC 2023
    - 11.5K bytes
    - Viewed (0)
  10. pkg/kubelet/cm/devicemanager/endpoint.go

    limitations under the License.
    */
    
    package devicemanager
    
    import (
    	"context"
    	"fmt"
    	"sync"
    	"time"
    
    	pluginapi "k8s.io/kubelet/pkg/apis/deviceplugin/v1beta1"
    	plugin "k8s.io/kubernetes/pkg/kubelet/cm/devicemanager/plugin/v1beta1"
    )
    
    // endpoint maps to a single registered device plugin. It is responsible
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Nov 02 11:05:20 UTC 2022
    - 3.9K bytes
    - Viewed (0)
Back to top