- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for podAllocation (0.11 sec)
-
pkg/kubelet/status/state/state_mem.go
func (s *stateMemory) SetContainerResourceAllocation(podUID string, containerName string, alloc v1.ResourceList) error { s.Lock() defer s.Unlock() if _, ok := s.podAllocation[podUID]; !ok { s.podAllocation[podUID] = make(map[string]v1.ResourceList) } s.podAllocation[podUID][containerName] = alloc klog.V(3).InfoS("Updated container resource allocation", "podUID", podUID, "containerName", containerName, "alloc", alloc) return nil }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Feb 24 18:21:21 UTC 2023 - 4K bytes - Viewed (0) -
pkg/kubelet/status/state/state_checkpoint.go
func (sc *stateCheckpoint) storeState() error { checkpoint := NewPodResourceAllocationCheckpoint() podAllocation := sc.cache.GetPodResourceAllocation() for pod := range podAllocation { checkpoint.AllocationEntries[pod] = make(map[string]v1.ResourceList) for container, alloc := range podAllocation[pod] { checkpoint.AllocationEntries[pod][container] = alloc } } podResizeStatus := sc.cache.GetResizeStatus()
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Mar 13 00:16:44 UTC 2023 - 6.9K bytes - Viewed (0)