defaultcompute

package
v0.16.0 Latest Latest
Warning

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

Go to latest
Published: Jun 21, 2023 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

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

Variables

This section is empty.

Functions

func New

New creates a DefaultAssigner.

Types

type DefaultComputer

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

DefaultComputer compute replicas according to the resource.

func (*DefaultComputer) Compute

func (pl *DefaultComputer) Compute(ctx context.Context, requirements *appsapi.ReplicaRequirements, nodeInfo *framework.NodeInfo) (int32, *framework.Status)

Compute compute acceptable replicas for each filtered node

func (*DefaultComputer) Name

func (pl *DefaultComputer) Name() string

Name returns the name of the plugin.

Jump to

Keyboard shortcuts

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