Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 12 for removePlugin (0.2 sec)

  1. pkg/kubelet/pluginmanager/operationexecutor/operation_executor.go

    	// An error will be returned if socketPath is empty.
    	AddPlugin(pluginInfo cache.PluginInfo) error
    
    	// RemovePlugin deletes the plugin with the given socket path from the actual
    	// state of world.
    	// If a plugin does not exist with the given socket path, this is a no-op.
    	RemovePlugin(socketPath string)
    }
    
    type operationExecutor struct {
    	// pendingOperations keeps track of pending attach and detach operations so
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Aug 04 06:56:50 UTC 2023
    - 4.4K bytes
    - Viewed (0)
  2. pkg/kubelet/pluginmanager/cache/actual_state_of_world.go

    	// the actual state of world cache again with the new timestamp
    	AddPlugin(pluginInfo PluginInfo) error
    
    	// RemovePlugin deletes the plugin with the given socket path from the actual
    	// state of world.
    	// If a plugin does not exist with the given socket path, this is a no-op.
    	RemovePlugin(socketPath string)
    
    	// PluginExists checks if the given plugin exists in the current actual
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Feb 24 21:20:24 UTC 2022
    - 4.1K bytes
    - Viewed (0)
  3. pkg/kubelet/pluginmanager/cache/actual_state_of_world_test.go

    	// Check PluginExistsWithCorrectTimestamp returns false
    	if asw.PluginExistsWithCorrectTimestamp(pluginInfo) {
    		t.Fatalf("PluginExistsWithCorrectTimestamp returns true for plugin that's not registered")
    	}
    }
    
    // Calls RemovePlugin() to remove a plugin
    // Verifies newly removed plugin no longer exists in GetRegisteredPlugins()
    // Verifies PluginExistsWithCorrectTimestamp returns false
    func Test_ASW_RemovePlugin_Positive(t *testing.T) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jan 18 12:18:41 UTC 2023
    - 4.8K bytes
    - Viewed (0)
  4. pkg/kubelet/pluginmanager/cache/desired_state_of_world.go

    	// An error will be returned if socketPath is empty.
    	AddOrUpdatePlugin(socketPath string) error
    
    	// RemovePlugin deletes the plugin with the given socket path from the desired
    	// state of world.
    	// If a plugin does not exist with the given socket path, this is a no-op.
    	RemovePlugin(socketPath string)
    
    	// GetPluginsToRegister generates and returns a list of plugins
    	// in the current desired state of world.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Aug 02 12:47:44 UTC 2022
    - 6.1K bytes
    - Viewed (0)
  5. pkg/kubelet/pluginmanager/cache/desired_state_of_world_test.go

    	}
    
    	// Check PluginExists returns false
    	if dsw.PluginExists(socketPath) {
    		t.Fatalf("PluginExists returns true for the plugin that should not have been registered")
    	}
    }
    
    // Calls RemovePlugin() to remove a plugin
    // Verifies newly removed plugin no longer exists in GetPluginsToRegister()
    // Verifies newly removed plugin returns false for PluginExists()
    func Test_DSW_RemovePlugin_Positive(t *testing.T) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jan 18 12:18:41 UTC 2023
    - 5.2K bytes
    - Viewed (0)
  6. pkg/kubelet/pluginmanager/operationexecutor/operation_generator.go

    		// so that if we receive a register event during Register Plugin, we can process it as a Register call.
    		actualStateOfWorldUpdater.RemovePlugin(pluginInfo.SocketPath)
    
    		pluginInfo.Handler.DeRegisterPlugin(pluginInfo.Name)
    
    		klog.V(4).InfoS("DeRegisterPlugin called", "pluginName", pluginInfo.Name, "pluginHandler", pluginInfo.Handler)
    		return nil
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat Mar 16 14:21:15 UTC 2024
    - 7.1K bytes
    - Viewed (0)
  7. pkg/kubelet/pluginmanager/pluginwatcher/plugin_watcher.go

    	klog.V(6).InfoS("Handling delete event", "event", event)
    
    	socketPath := event.Name
    	klog.V(2).InfoS("Removing socket path from desired state cache", "path", socketPath)
    	w.desiredStateOfWorld.RemovePlugin(socketPath)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sun Jan 01 00:26:37 UTC 2023
    - 6.1K bytes
    - Viewed (0)
  8. pkg/kubelet/cm/dra/plugin/plugin.go

    // signaling it is no longer available.
    func (h *RegistrationHandler) DeRegisterPlugin(pluginName string) {
    	klog.InfoS("DeRegister DRA plugin", "name", pluginName)
    	deregisterPlugin(pluginName)
    	h.controller.removePlugin(pluginName)
    }
    
    // ValidatePlugin is called by kubelet's plugin watcher upon detection
    // of a new registration socket opened by DRA plugin.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Apr 19 16:27:05 UTC 2024
    - 6.2K bytes
    - Viewed (0)
  9. pkg/kubelet/cm/dra/plugin/noderesources.go

    	c.wg.Add(1)
    	go func() {
    		defer c.wg.Done()
    		c.monitorPlugin(cancelCtx, active, driverName, pluginInstance)
    	}()
    }
    
    // removePlugin is called whenever a plugin has been unregistered.
    func (c *nodeResourcesController) removePlugin(driverName string) {
    	if c == nil {
    		return
    	}
    
    	klog.FromContext(c.ctx).V(2).Info("Removing plugin", "driverName", driverName)
    	c.mutex.Lock()
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon May 27 20:12:53 UTC 2024
    - 16.6K bytes
    - Viewed (0)
  10. pkg/kubelet/pluginmanager/reconciler/reconciler_test.go

    	}
    	if aswPlugins[0].SocketPath != socketPath {
    		t.Fatalf("Test_Run_Positive_RegisterThenUnregister: expected\n%s\nin actual state of world, but got\n%v\n", socketPath, aswPlugins[0])
    	}
    
    	dsw.RemovePlugin(socketPath)
    	os.Remove(socketPath)
    	waitForUnregistration(t, socketPath, asw)
    
    	// Get asw plugins; it should no longer contain the added plugin
    	aswPlugins = asw.GetRegisteredPlugins()
    	if len(aswPlugins) != 0 {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat Mar 16 14:21:15 UTC 2024
    - 10.5K bytes
    - Viewed (0)
Back to top