Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for addContainerAllocatedResources (0.42 sec)

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

    		return nil
    	}
    	return devs.deviceIds.Devices()
    }
    
    // Populates allocatedResources with the device resources allocated to the specified <podUID, contName>.
    func (pdev *podDevices) addContainerAllocatedResources(podUID, contName string, allocatedResources map[string]sets.Set[string]) {
    	pdev.RLock()
    	defer pdev.RUnlock()
    	containers, exists := pdev.devs[podUID]
    	if !exists {
    		return
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat Jan 27 02:10:25 UTC 2024
    - 16.7K bytes
    - Viewed (0)
  2. pkg/kubelet/cm/devicemanager/manager.go

    			if err := m.allocateContainerResources(pod, container, m.devicesToReuse[string(pod.UID)]); err != nil {
    				return err
    			}
    			if !types.IsRestartableInitContainer(&initContainer) {
    				m.podDevices.addContainerAllocatedResources(string(pod.UID), container.Name, m.devicesToReuse[string(pod.UID)])
    			} else {
    				// If the init container is restartable, we need to keep the
    				// devices allocated. In other words, we should remove them
    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