kubernetesk8s.io/kubernetes/pkg/scheduler/framework/plugins/podtopologyspread Index | Files

package podtopologyspread

import "k8s.io/kubernetes/pkg/scheduler/framework/plugins/podtopologyspread"

Index

Constants

const Name = "PodTopologySpread"

Name is the name of the plugin used in the plugin registry and configurations.

Functions

func New

New initializes a new plugin and returns it.

Types

type PodTopologySpread

type PodTopologySpread struct{}

PodTopologySpread is a plugin that ensures pod's topologySpreadConstraints is satisfied.

func (*PodTopologySpread) Filter

func (pl *PodTopologySpread) Filter(ctx context.Context, cycleState *framework.CycleState, pod *v1.Pod, nodeInfo *nodeinfo.NodeInfo) *framework.Status

Filter invoked at the filter extension point.

func (*PodTopologySpread) Name

func (pl *PodTopologySpread) Name() string

Name returns name of the plugin. It is used in logs, etc.

Source Files

pod_topology_spread.go

Version
v1.17.0-alpha.3
Published
Oct 22, 2019
Platform
js/wasm
Imports
8 packages
Last checked
11 seconds ago

Tools for package owners.