kubernetes/pkg/controller/podgc/gc_controller_test.go

func alwaysReady() bool {}

func NewFromClient(ctx context.Context, kubeClient clientset.Interface, terminatedPodThreshold int) (*PodGCController, coreinformers.PodInformer, coreinformers.NodeInformer) {}

func TestGCTerminated(t *testing.T) {}

func makePod(name string, nodeName string, phase v1.PodPhase) *v1.Pod {}

func waitForAdded(q workqueue.TypedDelayingInterface[string], depth int) error {}

func TestGCOrphaned(t *testing.T) {}

func TestGCUnscheduledTerminating(t *testing.T) {}

func TestGCTerminating(t *testing.T) {}

func TestGCInspectingPatchedPodBeforeDeletion(t *testing.T) {}

func verifyDeletedAndPatchedPods(t *testing.T, client *fake.Clientset, wantDeletedPodNames, wantPatchedPodNames sets.Set[string]) {}

func testDeletingPodsMetrics(t *testing.T, total int, reason string) {}

func setupNewSimpleClient(nodes []*v1.Node, pods []*v1.Pod) *fake.Clientset {}

func getDeletedPodNames(client *fake.Clientset) sets.Set[string] {}

func getPatchedPodNames(client *fake.Clientset) sets.Set[string] {}

func resetMetrics() {}