Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 6 of 6 for PluginExists (0.24 sec)

  1. pkg/kubelet/pluginmanager/cache/desired_state_of_world_test.go

    	}
    
    	// Check PluginExists returns true
    	if !dsw.PluginExists(socketPath) {
    		t.Fatalf("PluginExists returns false for the newly added plugin")
    	}
    }
    
    // Calls AddOrUpdatePlugin() to update timestamp of an existing plugin
    // Verifies the timestamp the existing plugin is updated
    // Verifies newly added plugin returns true for PluginExists()
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jan 18 12:18:41 UTC 2023
    - 5.2K bytes
    - Viewed (0)
  2. pkg/kubelet/pluginmanager/cache/desired_state_of_world.go

    	// GetPluginsToRegister generates and returns a list of plugins
    	// in the current desired state of world.
    	GetPluginsToRegister() []PluginInfo
    
    	// PluginExists checks if the given socket path exists in the current desired
    	// state of world cache
    	PluginExists(socketPath string) bool
    }
    
    // NewDesiredStateOfWorld returns a new instance of DesiredStateOfWorld.
    func NewDesiredStateOfWorld() DesiredStateOfWorld {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Aug 02 12:47:44 UTC 2022
    - 6.1K bytes
    - Viewed (0)
  3. pkg/kubelet/pluginmanager/pluginwatcher/plugin_watcher_test.go

    }
    
    func waitForRegistration(
    	t *testing.T,
    	socketPath string,
    	dsw cache.DesiredStateOfWorld) {
    	err := retryWithExponentialBackOff(
    		time.Duration(500*time.Millisecond),
    		func() (bool, error) {
    			if dsw.PluginExists(socketPath) {
    				return true, nil
    			}
    			return false, nil
    		},
    	)
    	if err != nil {
    		t.Fatalf("Timed out waiting for plugin to be added to desired state of world cache:\n%s.", socketPath)
    	}
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Aug 04 06:56:50 UTC 2023
    - 8K bytes
    - Viewed (0)
  4. pkg/kubelet/pluginmanager/cache/actual_state_of_world.go

    	// 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
    	// state of world cache with the correct timestamp
    	PluginExistsWithCorrectTimestamp(pluginInfo PluginInfo) bool
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Feb 24 21:20:24 UTC 2022
    - 4.1K bytes
    - Viewed (0)
  5. pkg/kubelet/pluginmanager/reconciler/reconciler.go

    	// Ensure plugins that should be unregistered are unregistered.
    	for _, registeredPlugin := range rc.actualStateOfWorld.GetRegisteredPlugins() {
    		unregisterPlugin := false
    		if !rc.desiredStateOfWorld.PluginExists(registeredPlugin.SocketPath) {
    			unregisterPlugin = true
    		} else {
    			// We also need to unregister the plugins that exist in both actual state of world
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sun Dec 18 04:27:38 UTC 2022
    - 6.2K bytes
    - Viewed (0)
  6. pkg/volume/util/operationexecutor/operation_generator.go

    		if err != nil || volumePlugin == nil {
    			klog.Errorf(volumeAttached.GenerateErrorDetailed("VolumesAreAttached.FindPluginBySpec failed", err).Error())
    			continue
    		}
    		volumeSpecList, pluginExists := volumesPerPlugin[volumePlugin.GetPluginName()]
    		if !pluginExists {
    			volumeSpecList = []*volume.Spec{}
    		}
    		volumeSpecList = append(volumeSpecList, volumeAttached.VolumeSpec)
    		volumesPerPlugin[volumePlugin.GetPluginName()] = volumeSpecList
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue May 14 06:17:25 UTC 2024
    - 101.4K bytes
    - Viewed (0)
Back to top