Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for mustInclude (0.15 sec)

  1. pkg/kubelet/cm/devicemanager/manager_test.go

    	m.initChan <- devs
    	return &pluginapi.PreStartContainerResponse{}, nil
    }
    
    func (m *MockEndpoint) getPreferredAllocation(available, mustInclude []string, size int) (*pluginapi.PreferredAllocationResponse, error) {
    	if m.getPreferredAllocationFunc != nil {
    		return m.getPreferredAllocationFunc(available, mustInclude, size)
    	}
    	return nil, nil
    }
    
    func (m *MockEndpoint) allocate(devs []string) (*pluginapi.AllocateResponse, error) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 04 06:25:43 UTC 2024
    - 65K bytes
    - Viewed (0)
  2. pkg/kubelet/cm/devicemanager/manager.go

    // call for device plugin resource with GetPreferredAllocationAvailable option set.
    func (m *ManagerImpl) callGetPreferredAllocationIfAvailable(podUID, contName, resource string, available, mustInclude sets.Set[string], size int) (sets.Set[string], error) {
    	eI, ok := m.endpoints[resource]
    	if !ok {
    		return nil, fmt.Errorf("endpoint not found in cache for a registered resource: %s", resource)
    	}
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Apr 15 12:01:56 UTC 2024
    - 43K bytes
    - Viewed (0)
Back to top