const gcCheckPeriod …
const quarantineTime …
type PodGCController …
func NewPodGC(ctx context.Context, kubeClient clientset.Interface, podInformer coreinformers.PodInformer,
nodeInformer coreinformers.NodeInformer, terminatedPodThreshold int) *PodGCController { … }
func NewPodGCInternal(ctx context.Context, kubeClient clientset.Interface, podInformer coreinformers.PodInformer,
nodeInformer coreinformers.NodeInformer, terminatedPodThreshold int, gcCheckPeriod, quarantineTime time.Duration) *PodGCController { … }
func (gcc *PodGCController) Run(ctx context.Context) { … }
func (gcc *PodGCController) gc(ctx context.Context) { … }
func isPodTerminated(pod *v1.Pod) bool { … }
func isPodTerminating(pod *v1.Pod) bool { … }
func (gcc *PodGCController) gcTerminating(ctx context.Context, pods []*v1.Pod) { … }
func (gcc *PodGCController) gcTerminated(ctx context.Context, pods []*v1.Pod) { … }
func (gcc *PodGCController) gcOrphaned(ctx context.Context, pods []*v1.Pod, nodes []*v1.Node) { … }
func (gcc *PodGCController) discoverDeletedNodes(ctx context.Context, existingNodeNames sets.String) (sets.String, bool) { … }
func (gcc *PodGCController) checkIfNodeExists(ctx context.Context, name string) (bool, error) { … }
func (gcc *PodGCController) gcUnscheduledTerminating(ctx context.Context, pods []*v1.Pod) { … }
type byEvictionAndCreationTimestamp …
func (o byEvictionAndCreationTimestamp) Len() int { … }
func (o byEvictionAndCreationTimestamp) Swap(i, j int) { … }
func (o byEvictionAndCreationTimestamp) Less(i, j int) bool { … }
func (gcc *PodGCController) markFailedAndDeletePod(ctx context.Context, pod *v1.Pod) error { … }
func (gcc *PodGCController) markFailedAndDeletePodWithCondition(ctx context.Context, pod *v1.Pod, condition *v1.PodCondition) error { … }