- Sort Score
- Result 10 results
- Languages All
Results 11 - 20 of 30 for socketPath (0.18 sec)
-
pkg/kubelet/pluginmanager/operationexecutor/operation_executor.go
operationGenerator OperationGenerator } var _ OperationExecutor = &operationExecutor{} func (oe *operationExecutor) IsOperationPending(socketPath string) bool { return oe.pendingOperations.IsOperationPending(socketPath) } func (oe *operationExecutor) RegisterPlugin( socketPath string, timestamp time.Time, pluginHandlers map[string]cache.PluginHandler, actualStateOfWorld ActualStateOfWorldUpdater) error {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Aug 04 06:56:50 UTC 2023 - 4.4K bytes - Viewed (0) -
pkg/kubelet/pluginmanager/operationexecutor/operation_executor_test.go
} } func TestOperationExecutor_UnregisterPlugin_ConcurrentUnregisterPlugin(t *testing.T) { ch, quit, oe := setup() for i := 0; i < numPluginsToUnregister; i++ { socketPath := "socket-path" + strconv.Itoa(i) pluginInfo := cache.PluginInfo{SocketPath: socketPath} oe.UnregisterPlugin(pluginInfo, nil /* actual state of the world updator */) } if !isOperationRunConcurrently(ch, quit, numPluginsToUnregister) {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Sat Jul 30 03:35:26 UTC 2022 - 4.8K bytes - Viewed (0) -
pkg/kubelet/pluginmanager/cache/actual_state_of_world_test.go
pluginInfo := PluginInfo{ SocketPath: "/var/lib/kubelet/device-plugins/test-plugin.sock", Timestamp: time.Now(), Handler: nil, Name: "test", } err := asw.AddPlugin(pluginInfo) // Assert if err != nil { t.Fatalf("AddPlugin failed. Expected: <no error> Actual: <%v>", err) } // Try removing this plugin asw.RemovePlugin(pluginInfo.SocketPath)
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Jan 18 12:18:41 UTC 2023 - 4.8K bytes - Viewed (0) -
pkg/kubelet/pluginmanager/pluginwatcher/plugin_watcher_others_test.go
fiExpected, errExpected := os.Stat(event.Name) assert.Equal(t, fi, fiExpected) assert.Equal(t, err, errExpected) } func TestGetSocketPath(t *testing.T) { socketPath := "/tmp/foo/lish.sock" assert.Equal(t, socketPath, getSocketPath(socketPath))
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Sun Jan 01 00:26:37 UTC 2023 - 1.1K bytes - Viewed (0) -
pkg/kubelet/cm/devicemanager/plugin/v1beta1/client.go
handler ClientHandler client api.DevicePluginClient } // NewPluginClient returns an initialized device plugin client. func NewPluginClient(r string, socketPath string, h ClientHandler) Client { return &client{ resource: r, socket: socketPath, handler: h, } } // Connect is for establishing a gRPC connection between device manager and device plugin. func (c *client) Connect() error {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Oct 24 21:35:13 UTC 2023 - 3.8K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/storage/value/encrypt/envelope/testing/v2/kms_plugin_mock.go
ver string socketPath string keyID string } // NewBase64Plugin is a constructor for Base64Plugin. func NewBase64Plugin(t testing.TB, socketPath string) *Base64Plugin { server := grpc.NewServer() result := &Base64Plugin{ grpcServer: server, mu: &sync.Mutex{}, ver: kmsapiVersion, socketPath: socketPath, keyID: "1", }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Jul 21 19:25:52 UTC 2023 - 6.5K bytes - Viewed (0) -
pkg/kubelet/pluginmanager/pluginwatcher/plugin_watcher_others.go
package pluginwatcher import ( "os" "github.com/fsnotify/fsnotify" ) func getStat(event fsnotify.Event) (os.FileInfo, error) { return os.Stat(event.Name) } func getSocketPath(socketPath string) string { return socketPath
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Sun Jan 01 00:26:37 UTC 2023 - 842 bytes - Viewed (0) -
pkg/log/uds_test.go
srv := udsServer{messages: make([]string, 0)} udsDir := t.TempDir() socketPath := filepath.Join(udsDir, "test.sock") unixListener, err := net.Listen("unix", socketPath) if err != nil { t.Fatalf("failed to create uds listener: %v", err) } loggingOptions := DefaultOptions() loggingOptions.JSONEncoding = true if err := Configure(loggingOptions.WithTeeToUDS(socketPath, "/")); err != nil { t.Fatal(err) } mux := http.NewServeMux()
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Wed Nov 29 01:05:12 UTC 2023 - 3.2K bytes - Viewed (0) -
pkg/kubelet/pluginmanager/metrics/metrics_test.go
func TestMetricCollection(t *testing.T) { dsw := cache.NewDesiredStateOfWorld() asw := cache.NewActualStateOfWorld() fakePlugin := cache.PluginInfo{ SocketPath: fmt.Sprintf("fake/path/plugin.sock"), } // Add one plugin to DesiredStateOfWorld err := dsw.AddOrUpdatePlugin(fakePlugin.SocketPath) if err != nil { t.Fatalf("AddOrUpdatePlugin failed. Expected: <no error> Actual: <%v>", err) } // Add one plugin to ActualStateOfWorld
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Nov 12 12:48:20 UTC 2019 - 2.2K bytes - Viewed (0) -
pkg/kubelet/pluginmanager/reconciler/reconciler.go
// with the same socket path but different timestamp. for _, dswPlugin := range rc.desiredStateOfWorld.GetPluginsToRegister() { if dswPlugin.SocketPath == registeredPlugin.SocketPath && dswPlugin.Timestamp != registeredPlugin.Timestamp { klog.V(5).InfoS("An updated version of plugin has been found, unregistering the plugin first before reregistering", "plugin", registeredPlugin)
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Sun Dec 18 04:27:38 UTC 2022 - 6.2K bytes - Viewed (0)