pods

package
v0.0.0-...-386b7fa Latest Latest
Warning

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

Go to latest
Published: May 14, 2019 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type NoOpPodListProcessor

type NoOpPodListProcessor struct {
}

NoOpPodListProcessor is returning pod lists without processing them.

func (*NoOpPodListProcessor) CleanUp

func (p *NoOpPodListProcessor) CleanUp()

CleanUp cleans up the processor's internal structures.

func (*NoOpPodListProcessor) Process

func (p *NoOpPodListProcessor) Process(context *context.AutoscalingContext,
	unschedulablePods []*apiv1.Pod, allScheduledPods []*apiv1.Pod,
	allNodes []*apiv1.Node, readyNodes []*apiv1.Node) ([]*apiv1.Pod, []*apiv1.Pod, error)

Process processes lists of unschedulable and scheduled pods before scaling of the cluster.

type PodListProcessor

type PodListProcessor interface {
	Process(context *context.AutoscalingContext,
		unschedulablePods []*apiv1.Pod, allScheduledPods []*apiv1.Pod,
		allNodes []*apiv1.Node, readyNodes []*apiv1.Node) ([]*apiv1.Pod, []*apiv1.Pod, error)
	CleanUp()
}

PodListProcessor processes lists of unschedulable and scheduled pods before scaling of the cluster.

func NewDefaultPodListProcessor

func NewDefaultPodListProcessor() PodListProcessor

NewDefaultPodListProcessor creates an instance of PodListProcessor.

Jump to

Keyboard shortcuts

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