- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for MergeContainerResourceLimits (0.35 sec)
-
pkg/kubelet/kubelet_resources.go
outputPod := pod.DeepCopy() for idx := range outputPod.Spec.Containers { resource.MergeContainerResourceLimits(&outputPod.Spec.Containers[idx], allocatable) } var outputContainer *v1.Container if container != nil { outputContainer = container.DeepCopy() resource.MergeContainerResourceLimits(outputContainer, allocatable) } return outputPod, outputContainer, nil
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Mar 15 22:42:34 UTC 2021 - 1.9K bytes - Viewed (0) -
pkg/api/v1/resource/helpers.go
return &container, nil } } return nil, fmt.Errorf("container %s not found", containerName) } // MergeContainerResourceLimits checks if a limit is applied for // the container, and if not, it sets the limit to the passed resource list. func MergeContainerResourceLimits(container *v1.Container, allocatable v1.ResourceList) { if container.Resources.Limits == nil {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Oct 26 13:58:16 UTC 2023 - 16.3K bytes - Viewed (0)