Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 14 for PluginHandler (0.19 sec)

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

    See the License for the specific language governing permissions and
    limitations under the License.
    */
    
    package cache
    
    import "time"
    
    // PluginHandler is an interface a client of the pluginwatcher API needs to implement in
    // order to consume plugins
    // The PluginHandler follows the simple following state machine:
    //
    //	                       +--------------------------------------+
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat Mar 16 14:21:15 UTC 2024
    - 3.1K bytes
    - Viewed (0)
  2. pkg/kubelet/pluginmanager/operationexecutor/operation_generator.go

    	// Generates the RegisterPlugin function needed to perform the registration of a plugin
    	GenerateRegisterPluginFunc(
    		socketPath string,
    		timestamp time.Time,
    		pluginHandlers map[string]cache.PluginHandler,
    		actualStateOfWorldUpdater ActualStateOfWorldUpdater) func() error
    
    	// Generates the UnregisterPlugin function needed to perform the unregistration of a plugin
    	GenerateUnregisterPluginFunc(
    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/pluginmanager/operationexecutor/operation_executor.go

    	// It then updates the actual state of the world to reflect that.
    	RegisterPlugin(socketPath string, timestamp time.Time, pluginHandlers map[string]cache.PluginHandler, actualStateOfWorld ActualStateOfWorldUpdater) error
    
    	// UnregisterPlugin deregisters the given plugin using a handler in the given plugin handler map.
    	// It then updates the actual state of the world to reflect that.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Aug 04 06:56:50 UTC 2023
    - 4.4K bytes
    - Viewed (0)
  4. pkg/kubelet/pluginmanager/reconciler/reconciler_test.go

    		fakeRecorder,
    	))
    	reconciler := NewReconciler(
    		oex,
    		reconcilerLoopSleepDuration,
    		dsw,
    		asw,
    	)
    	reconciler.AddHandler(registerapi.DevicePlugin, cache.PluginHandler(di))
    
    	// Start the reconciler to fill ASW.
    	stopChan := make(chan struct{})
    	defer close(stopChan)
    	go reconciler.Run(stopChan)
    	socketPath := filepath.Join(socketDir, "plugin.sock")
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat Mar 16 14:21:15 UTC 2024
    - 10.5K bytes
    - Viewed (0)
  5. pkg/kubelet/cm/devicemanager/plugin/v1beta1/handler.go

    	api "k8s.io/kubelet/pkg/apis/deviceplugin/v1beta1"
    	v1helper "k8s.io/kubernetes/pkg/apis/core/v1/helper"
    	"k8s.io/kubernetes/pkg/kubelet/pluginmanager/cache"
    )
    
    func (s *server) GetPluginHandler() cache.PluginHandler {
    	if f, err := os.Create(s.socketDir + "DEPRECATION"); err != nil {
    		klog.ErrorS(err, "Failed to create deprecation file at socket dir", "path", s.socketDir)
    	} else {
    		f.Close()
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat Mar 16 14:21:15 UTC 2024
    - 3.3K bytes
    - Viewed (0)
  6. pkg/kubelet/cm/devicemanager/types.go

    	// and inactive device plugin resources previously registered on the node.
    	GetCapacity() (v1.ResourceList, v1.ResourceList, []string)
    	GetWatcherHandler() cache.PluginHandler
    
    	// GetDevices returns information about the devices assigned to pods and containers
    	GetDevices(podUID, containerName string) ResourceDeviceInstances
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Sep 27 13:02:15 UTC 2023
    - 5K bytes
    - Viewed (0)
  7. pkg/kubelet/cm/devicemanager/plugin/v1beta1/server.go

    	"k8s.io/kubernetes/pkg/kubelet/metrics"
    	"k8s.io/kubernetes/pkg/kubelet/pluginmanager/cache"
    )
    
    // Server interface provides methods for Device plugin registration server.
    type Server interface {
    	cache.PluginHandler
    	Start() error
    	Stop() error
    	SocketPath() string
    }
    
    type server struct {
    	socketName string
    	socketDir  string
    	mutex      sync.Mutex
    	wg         sync.WaitGroup
    	grpc       *grpc.Server
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat Jan 27 02:10:25 UTC 2024
    - 5.4K bytes
    - Viewed (0)
  8. pkg/kubelet/cm/container_manager_windows.go

    	return result
    }
    
    func (cm *containerManagerImpl) GetCapacity(localStorageCapacityIsolation bool) v1.ResourceList {
    	return cm.capacity
    }
    
    func (cm *containerManagerImpl) GetPluginRegistrationHandler() cache.PluginHandler {
    	return cm.deviceManager.GetWatcherHandler()
    }
    
    func (cm *containerManagerImpl) GetDevicePluginResourceCapacity() (v1.ResourceList, v1.ResourceList, []string) {
    	return cm.deviceManager.GetCapacity()
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jul 12 11:25:36 UTC 2023
    - 8.7K bytes
    - Viewed (0)
  9. pkg/kubelet/cm/container_manager.go

    	// GetPluginRegistrationHandler returns a plugin registration handler
    	// The pluginwatcher's Handlers allow to have a single module for handling
    	// registration.
    	GetPluginRegistrationHandler() cache.PluginHandler
    
    	// ShouldResetExtendedResourceCapacity returns whether or not the extended resources should be zeroed,
    	// due to node recreation.
    	ShouldResetExtendedResourceCapacity() bool
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Mar 07 21:22:13 UTC 2024
    - 9K bytes
    - Viewed (0)
  10. pkg/volume/csi/csi_plugin.go

    // corresponding sockets
    var csiDrivers = &DriversStore{}
    
    var nim nodeinfomanager.Interface
    
    // PluginHandler is the plugin registration handler interface passed to the
    // pluginwatcher module in kubelet
    var PluginHandler = &RegistrationHandler{}
    
    // ValidatePlugin is called by kubelet's plugin watcher upon detection
    // of a new registration socket opened by CSI Driver registrar side car.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue May 14 06:17:25 UTC 2024
    - 29.2K bytes
    - Viewed (0)
Back to top