Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for StorageEphemeral (0.25 sec)

  1. pkg/apis/core/resource.go

    }
    
    // Pods returns the list of pods
    func (rl *ResourceList) Pods() *resource.Quantity {
    	return rl.Name(ResourcePods, resource.DecimalSI)
    }
    
    // StorageEphemeral returns the list of ephemeral storage volumes, if any
    func (rl *ResourceList) StorageEphemeral() *resource.Quantity {
    	return rl.Name(ResourceEphemeralStorage, resource.BinarySI)
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Nov 10 21:09:13 UTC 2020
    - 1.8K bytes
    - Viewed (0)
  2. staging/src/k8s.io/api/core/v1/resource.go

    }
    
    // Pods returns the list of pods
    func (rl *ResourceList) Pods() *resource.Quantity {
    	return rl.Name(ResourcePods, resource.DecimalSI)
    }
    
    // StorageEphemeral returns the list of ephemeral storage volumes, if any
    func (rl *ResourceList) StorageEphemeral() *resource.Quantity {
    	return rl.Name(ResourceEphemeralStorage, resource.BinarySI)
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Nov 10 21:09:13 UTC 2020
    - 1.8K bytes
    - Viewed (0)
  3. pkg/api/v1/resource/helpers.go

    	case "limits.memory":
    		return convertResourceMemoryToString(container.Resources.Limits.Memory(), divisor)
    	case "limits.ephemeral-storage":
    		return convertResourceEphemeralStorageToString(container.Resources.Limits.StorageEphemeral(), divisor)
    	case "requests.cpu":
    		return convertResourceCPUToString(container.Resources.Requests.Cpu(), divisor)
    	case "requests.memory":
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Oct 26 13:58:16 UTC 2023
    - 16.3K bytes
    - Viewed (0)
  4. pkg/kubelet/eviction/eviction_manager.go

    	thresholdsMap := make(map[string]*resource.Quantity)
    	for _, container := range pod.Spec.Containers {
    		ephemeralLimit := container.Resources.Limits.StorageEphemeral()
    		if ephemeralLimit != nil && ephemeralLimit.Value() != 0 {
    			thresholdsMap[container.Name] = ephemeralLimit
    		}
    	}
    
    	for _, containerStat := range podStats.Containers {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Mar 27 18:55:56 UTC 2024
    - 24.6K bytes
    - Viewed (0)
  5. pkg/kubelet/eviction/eviction_manager_test.go

    	case "container-ephemeral-storage-limit":
    		podStats = newPodMemoryStats(pod, *resource.NewQuantity(limits.StorageEphemeral().Value(), resource.BinarySI))
    	case "pod-ephemeral-storage-limit":
    		podStats = newPodMemoryStats(pod, *resource.NewQuantity(limits.StorageEphemeral().Value()*2, resource.BinarySI))
    	default:
    		podStats = newPodMemoryStats(pod, resource.MustParse(memoryWorkingSet))
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 15 23:14:12 UTC 2024
    - 119.9K bytes
    - Viewed (0)
Back to top