Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for GetRegisteredPlugins (0.23 sec)

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

    */
    
    package cache
    
    import (
    	"runtime"
    	"testing"
    	"time"
    
    	"github.com/stretchr/testify/require"
    )
    
    // Calls AddPlugin() to add a plugin
    // Verifies newly added plugin exists in GetRegisteredPlugins()
    // Verifies PluginExistsWithCorrectTimestamp returns true for the plugin
    func Test_ASW_AddPlugin_Positive_NewPlugin(t *testing.T) {
    	pluginInfo := PluginInfo{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jan 18 12:18:41 UTC 2023
    - 4.8K bytes
    - Viewed (0)
  2. pkg/kubelet/pluginmanager/cache/actual_state_of_world.go

    // all plugins attached to this node.
    type ActualStateOfWorld interface {
    
    	// GetRegisteredPlugins generates and returns a list of plugins
    	// that are successfully registered plugins in the current actual state of world.
    	GetRegisteredPlugins() []PluginInfo
    
    	// AddPlugin add the given plugin in the cache.
    	// An error will be returned if socketPath of the PluginInfo object is empty.
    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/reconciler/reconciler_test.go

    	socketPath string,
    	previousTimestamp time.Time,
    	asw cache.ActualStateOfWorld) {
    	err := retryWithExponentialBackOff(
    		time.Duration(500*time.Millisecond),
    		func() (bool, error) {
    			registeredPlugins := asw.GetRegisteredPlugins()
    			for _, plugin := range registeredPlugins {
    				if plugin.SocketPath == socketPath && plugin.Timestamp.After(previousTimestamp) {
    					return true, nil
    				}
    			}
    			return false, nil
    		},
    	)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat Mar 16 14:21:15 UTC 2024
    - 10.5K bytes
    - Viewed (0)
  4. pkg/kubelet/pluginmanager/metrics/metrics.go

    				float64(count),
    				socketPath,
    				stateName)
    		}
    	}
    }
    
    func (c *totalPluginsCollector) getPluginCount() pluginCount {
    	counter := make(pluginCount)
    	for _, registeredPlugin := range c.asw.GetRegisteredPlugins() {
    		socketPath := registeredPlugin.SocketPath
    		counter.add("actual_state_of_world", socketPath)
    	}
    
    	for _, pluginToRegister := range c.dsw.GetPluginsToRegister() {
    		socketPath := pluginToRegister.SocketPath
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Nov 08 01:16:57 UTC 2019
    - 2.7K bytes
    - Viewed (0)
  5. pkg/kubelet/pluginmanager/reconciler/reconciler.go

    func (rc *reconciler) reconcile() {
    	// Unregisterations are triggered before registrations
    
    	// 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 {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sun Dec 18 04:27:38 UTC 2022
    - 6.2K bytes
    - Viewed (0)
Back to top