- Sort Score
- Result 10 results
- Languages All
Results 31 - 40 of 86 for AllocatedResources (0.33 sec)
-
plugin/pkg/admission/noderestriction/admission_test.go
}, }, Status: api.PersistentVolumeClaimStatus{ Capacity: api.ResourceList{ api.ResourceStorage: resource.MustParse(allocatedResources), }, Phase: api.ClaimBound, AllocatedResources: api.ResourceList{ api.ResourceStorage: resource.MustParse(allocatedResources), }, }, } if resizeStatus != nil { claimStatusMap := map[api.ResourceName]api.ClaimResourceStatus{
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Apr 24 18:25:29 UTC 2024 - 73.2K bytes - Viewed (0) -
pkg/kubelet/kubelet_pods.go
// AllocatedResources values come from checkpoint. It is the source-of-truth. found := false status.AllocatedResources, found = kl.statusManager.GetContainerResourceAllocation(string(pod.UID), cName) if !(container.Resources.Requests == nil && container.Resources.Limits == nil) && !found { // Log error and fallback to AllocatedResources in oldStatus if it exists
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Jun 14 16:09:17 UTC 2024 - 101.2K bytes - Viewed (0) -
pkg/kubelet/kubelet.go
// updateContainerResourceAllocation updates AllocatedResources values // (for cpu & memory) from checkpoint store func (kl *Kubelet) updateContainerResourceAllocation(pod *v1.Pod) { for _, c := range pod.Spec.Containers { allocatedResources, found := kl.statusManager.GetContainerResourceAllocation(string(pod.UID), c.Name) if c.Resources.Requests != nil && found { if _, ok := allocatedResources[v1.ResourceCPU]; ok {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Jun 14 16:09:17 UTC 2024 - 126.1K bytes - Viewed (0) -
pkg/api/pod/util_test.go
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed May 29 22:40:29 UTC 2024 - 108.8K bytes - Viewed (0) -
plugin/pkg/admission/limitranger/admission.go
cs, found := containerStatuses[container.Name] if found { if pod.Status.Resize == api.PodResizeStatusInfeasible { containerReqs = cs.AllocatedResources } else { containerReqs = max(container.Resources.Requests, cs.AllocatedResources) } } } addResourceList(reqs, containerReqs) } restartableInitCotnainerReqs := api.ResourceList{}
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Oct 24 13:04:39 UTC 2023 - 25.8K bytes - Viewed (0) -
pkg/api/pod/util.go
} if !utilfeature.DefaultFeatureGate.Enabled(features.InPlacePodVerticalScaling) && !inPlacePodVerticalScalingInUse(oldPodSpec) { // Drop Resize, AllocatedResources, and Resources fields dropResourcesFields := func(csl []api.ContainerStatus) { for i := range csl { csl[i].AllocatedResources = nil csl[i].Resources = nil } } dropResourcesFields(podStatus.ContainerStatuses)
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed May 29 22:40:29 UTC 2024 - 41.3K bytes - Viewed (0) -
plugin/pkg/admission/noderestriction/admission.go
newPVC.Status.Conditions = nil if p.expansionRecoveryEnabled { oldPVC.Status.AllocatedResourceStatuses = nil newPVC.Status.AllocatedResourceStatuses = nil oldPVC.Status.AllocatedResources = nil newPVC.Status.AllocatedResources = nil } // TODO(apelisse): We don't have a good mechanism to // verify that only the things that should have changed // have changed. Ignore it for now.
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Mar 07 21:22:55 UTC 2024 - 23.6K bytes - Viewed (0) -
pkg/kubelet/status/status_manager.go
// the provided podUIDs. RemoveOrphanedStatuses(podUIDs map[types.UID]bool) // GetContainerResourceAllocation returns checkpointed AllocatedResources value for the container GetContainerResourceAllocation(podUID string, containerName string) (v1.ResourceList, bool) // GetPodResizeStatus returns checkpointed PodStatus.Resize value
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu May 02 16:27:19 UTC 2024 - 44.3K bytes - Viewed (0) -
pkg/apis/core/helper/helpers.go
return true } } return false } func ClaimContainsAllocatedResources(pvc *core.PersistentVolumeClaim) bool { if pvc == nil { return false } if pvc.Status.AllocatedResources != nil { return true } return false } func ClaimContainsAllocatedResourceStatus(pvc *core.PersistentVolumeClaim) bool { if pvc == nil { return false }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Sat Oct 28 07:31:28 UTC 2023 - 16.1K bytes - Viewed (0) -
pkg/kubelet/cm/cpumanager/policy_static.go
return 0 } cpuQuantity := container.Resources.Requests[v1.ResourceCPU] // In-place pod resize feature makes Container.Resources field mutable for CPU & memory. // AllocatedResources holds the value of Container.Resources.Requests when the pod was admitted. // We should return this value because this is what kubelet agreed to allocate for the container // and the value configured with runtime.
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Oct 06 13:16:15 UTC 2023 - 28.8K bytes - Viewed (0)