Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for ExtractContainerResourceValue (0.29 sec)

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

    	}
    
    	container := realContainer.DeepCopy()
    
    	MergeContainerResourceLimits(container, nodeAllocatable)
    
    	return ExtractContainerResourceValue(fs, container)
    }
    
    // ExtractContainerResourceValue extracts the value of a resource
    // in an already known container
    func ExtractContainerResourceValue(fs *v1.ResourceFieldSelector, container *v1.Container) (string, error) {
    	divisor := resource.Quantity{}
    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/kubelet/kubelet_pods.go

    func containerResourceRuntimeValue(fs *v1.ResourceFieldSelector, pod *v1.Pod, container *v1.Container) (string, error) {
    	containerName := fs.ContainerName
    	if len(containerName) == 0 {
    		return resource.ExtractContainerResourceValue(fs, container)
    	}
    	return resource.ExtractResourceValueByContainerName(fs, pod, containerName)
    }
    
    // killPod instructs the container runtime to kill the pod. This method requires that
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jun 14 16:09:17 UTC 2024
    - 101.2K bytes
    - Viewed (0)
Back to top