kubernetes/test/e2e/framework/pod/resize.go

const CgroupCPUPeriod

const CgroupCPUShares

const CgroupCPUQuota

const CgroupMemLimit

const Cgroupv2MemLimit

const Cgroupv2MemRequest

const Cgroupv2CPULimit

const Cgroupv2CPURequest

const CPUPeriod

const MinContainerRuntimeVersion

var podOnCgroupv2Node

type ContainerResources

type ContainerAllocations

type ResizableContainerInfo

type containerPatch

type patchSpec

func getTestResourceInfo(tcInfo ResizableContainerInfo) (v1.ResourceRequirements, v1.ResourceList, []v1.ContainerResizePolicy) {}

func InitDefaultResizePolicy(containers []ResizableContainerInfo) {}

func makeResizableContainer(tcInfo ResizableContainerInfo) (v1.Container, v1.ContainerStatus) {}

func MakePodWithResizableContainers(ns, name, timeStamp string, tcInfo []ResizableContainerInfo) *v1.Pod {}

func VerifyPodResizePolicy(gotPod *v1.Pod, wantCtrs []ResizableContainerInfo) {}

func VerifyPodResources(gotPod *v1.Pod, wantCtrs []ResizableContainerInfo) {}

func VerifyPodAllocations(gotPod *v1.Pod, wantCtrs []ResizableContainerInfo) error {}

func VerifyPodStatusResources(gotPod *v1.Pod, wantCtrs []ResizableContainerInfo) {}

// isPodOnCgroupv2Node checks whether the pod is running on cgroupv2 node.
// TODO: Deduplicate this function with NPD cluster e2e test:
// https://github.com/kubernetes/kubernetes/blob/2049360379bcc5d6467769cef112e6e492d3d2f0/test/e2e/node/node_problem_detector.go#L369
func isPodOnCgroupv2Node(f *framework.Framework, pod *v1.Pod) bool {}

func VerifyPodContainersCgroupValues(ctx context.Context, f *framework.Framework, pod *v1.Pod, tcInfo []ResizableContainerInfo) error {}

func waitForContainerRestart(ctx context.Context, podClient *PodClient, pod *v1.Pod, expectedContainers []ResizableContainerInfo, initialContainers []ResizableContainerInfo, isRollback bool) error {}

func WaitForPodResizeActuation(ctx context.Context, f *framework.Framework, podClient *PodClient, pod, patchedPod *v1.Pod, expectedContainers []ResizableContainerInfo, initialContainers []ResizableContainerInfo, isRollback bool) *v1.Pod {}

// ResizeContainerPatch generates a patch string to resize the pod container.
func ResizeContainerPatch(containers []ResizableContainerInfo) (string, error) {}