kubernetes/test/e2e_node/garbage_collector_test.go

const maxPerPodContainer

const maxTotalContainers

const garbageCollectDuration

const setupDuration

const runtimePollInterval

type testPodSpec

func (pod *testPodSpec) getContainerName(containerNumber int) string {}

type testRun

var _

// Tests the following:
//
//	pods are created, and all containers restart the specified number of times
//	while containers are running, the number of copies of a single container does not exceed maxPerPodContainer
//	while containers are running, the total number of containers does not exceed maxTotalContainers
//	while containers are running, if not constrained by maxPerPodContainer or maxTotalContainers, keep an extra copy of each container
//	once pods are killed, all containers are eventually cleaned up
func containerGCTest(f *framework.Framework, test testRun) {}

func getPods(specs []*testPodSpec) (pods []*v1.Pod) {}

func getRestartingContainerCommand(path string, containerNum int, restarts int32, loopingCommand string) []string {}

func verifyPodRestartCount(ctx context.Context, f *framework.Framework, podName string, expectedNumContainers int, expectedRestartCount int32) error {}