reconciler

package
v0.0.0-...-dcfb068 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 19, 2024 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DispatchedPodsPopulator

type DispatchedPodsPopulator struct {
	// contains filtered or unexported fields
}

DispatchedPodsPopulator is the populator struct for collecting dispatched pods who are in inactive schedulers

func NewDispatchedPodsPopulator

func NewDispatchedPodsPopulator(schedulerName string, podLister v1.PodLister, queue workqueue.Interface,
	maintainer *schemaintainer.SchedulerMaintainer,
) *DispatchedPodsPopulator

NewDispatchedPodsPopulator creates a new DispatchedPodsPopulator struct

func (*DispatchedPodsPopulator) Run

func (dpp *DispatchedPodsPopulator) Run(stopCh <-chan struct{})

Run starts the collection work

type PodStateReconciler

type PodStateReconciler struct {
	// contains filtered or unexported fields
}

PodStateReconciler stores all abnormal state pods and try to reset pod state

func NewPodStateReconciler

func NewPodStateReconciler(client kubernetes.Interface,
	podLister listerv1.PodLister,
	nodeLister listerv1.NodeLister,
	schedulerLister schedulerv1alpha1.SchedulerLister,
	nmNodeLister nodelisterv1alpha1.NMNodeLister,
	schedulerName string,
	dispatchedPodsStore store.DispatchInfo,
	maintainer *schemaintainer.SchedulerMaintainer,
) *PodStateReconciler

NewPodStateReconciler creates a new PodStateReconciler struct

func (*PodStateReconciler) AbnormalPodsEnqueue

func (psr *PodStateReconciler) AbnormalPodsEnqueue(obj interface{})

AbnormalPodsEnqueue adds obj to abnormal queue

func (*PodStateReconciler) AbnormalStatePodsSyncer

func (psr *PodStateReconciler) AbnormalStatePodsSyncer()

AbnormalStatePodsSyncer tries reset abnormal state pods

func (*PodStateReconciler) DeleteScheduler

func (psr *PodStateReconciler) DeleteScheduler(scheduler *schedulerapi.Scheduler)

func (*PodStateReconciler) Run

func (psr *PodStateReconciler) Run(stop <-chan struct{})

Run runs pod state syncer worker

func (*PodStateReconciler) StaleDispatchedPodsEnqueue

func (psr *PodStateReconciler) StaleDispatchedPodsEnqueue(obj interface{})

StaleDispatchedPodsEnqueue adds obj to stale dispatched queue

func (*PodStateReconciler) StaleDispatchedPodsSyncer

func (psr *PodStateReconciler) StaleDispatchedPodsSyncer()

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL