pods

package
v0.0.0-...-e8de369 Latest Latest
Warning

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

Go to latest
Published: Jun 21, 2018 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) Process

func (p *NoOpPodListProcessor) Process(context *context.AutoscalingContext, unschedulablePods []*apiv1.Pod, allScheduled []*apiv1.Pod, nodes []*apiv1.Node) ([]*apiv1.Pod, []*apiv1.Pod, error)

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

type PodListProcessor

type PodListProcessor interface {
	Process(context *context.AutoscalingContext, unschedulablePods []*apiv1.Pod, allScheduled []*apiv1.Pod, nodes []*apiv1.Node) ([]*apiv1.Pod, []*apiv1.Pod, error)
}

PodListProcessor processes lists of unschedulable and sheduled 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