Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 92 for AllocatedResources (0.26 sec)

  1. pkg/api/v1/resource/helpers.go

    			cs, found := containerStatuses[container.Name]
    			if found {
    				if pod.Status.Resize == v1.PodResizeStatusInfeasible {
    					containerReqs = cs.AllocatedResources.DeepCopy()
    				} else {
    					containerReqs = max(container.Resources.Requests, cs.AllocatedResources)
    				}
    			}
    		}
    
    		if len(opts.NonMissingContainerRequests) > 0 {
    			containerReqs = applyNonMissing(containerReqs, opts.NonMissingContainerRequests)
    		}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Oct 26 13:58:16 UTC 2023
    - 16.3K bytes
    - Viewed (0)
  2. pkg/api/v1/resource/helpers_test.go

    						Requests: v1.ResourceList{
    							v1.ResourceCPU: resource.MustParse("4"),
    						},
    					},
    				},
    			},
    			containerStatus: []v1.ContainerStatus{
    				{
    					Name: "container-1",
    					AllocatedResources: v1.ResourceList{
    						v1.ResourceCPU: resource.MustParse("2"),
    					},
    				},
    			},
    		},
    		{
    			description: "resized, no resize status",
    			expectedRequests: v1.ResourceList{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jul 07 22:26:13 UTC 2023
    - 38.3K bytes
    - Viewed (0)
  3. pkg/api/persistentvolumeclaim/util.go

    			pvc.Status.ModifyVolumeStatus = nil
    		}
    	}
    
    	if !utilfeature.DefaultFeatureGate.Enabled(features.RecoverVolumeExpansionFailure) {
    		if !helper.ClaimContainsAllocatedResources(oldPVC) {
    			pvc.Status.AllocatedResources = nil
    		}
    		if !helper.ClaimContainsAllocatedResourceStatus(oldPVC) {
    			pvc.Status.AllocatedResourceStatuses = nil
    		}
    	}
    }
    
    func dataSourceInUse(oldPVCSpec *core.PersistentVolumeClaimSpec) bool {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Oct 31 03:18:56 UTC 2023
    - 8.3K bytes
    - Viewed (0)
  4. 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)
  5. 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)
  6. 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)
  7. pkg/api/pod/util_test.go

    						{
    							Name:               "c1",
    							Image:              "image",
    							AllocatedResources: api.ResourceList{api.ResourceCPU: resource.MustParse("100m")},
    						},
    						{
    							Name:               "c2",
    							Image:              "image",
    							AllocatedResources: api.ResourceList{api.ResourceCPU: resource.MustParse("200m")},
    						},
    					},
    				},
    			},
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 29 22:40:29 UTC 2024
    - 108.8K bytes
    - Viewed (0)
  8. 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)
  9. 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)
  10. 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)
Back to top