Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for removePlugin (0.15 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/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)
  3. 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)
  4. 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)
  5. 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