nodeaffinitywithcache

package
v1.0.3 Latest Latest
Warning

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

Go to latest
Published: Oct 17, 2024 License: Apache-2.0 Imports: 9 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const Name = "NodeAffinityWithCache"

Variables

This section is empty.

Functions

func NewPlugin

func NewPlugin(c client.Client, args string) (api.MutatingHandler, error)

Types

type NodeAffinityWithCache

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

func (*NodeAffinityWithCache) GetName

func (p *NodeAffinityWithCache) GetName() string

func (*NodeAffinityWithCache) GetTieredLocality added in v1.0.0

func (p *NodeAffinityWithCache) GetTieredLocality() *TieredLocality

func (*NodeAffinityWithCache) Mutate

func (p *NodeAffinityWithCache) Mutate(pod *corev1.Pod, runtimeInfos map[string]base.RuntimeInfoInterface) (shouldStop bool, err error)

type Preferred added in v1.0.0

type Preferred struct {
	Name   string `yaml:"name"`
	Weight int32  `yaml:"weight"`
}

type TieredLocality added in v1.0.0

type TieredLocality struct {
	Preferred []Preferred `yaml:"preferred"`
	Required  []string    `yaml:"required"`
}

Jump to

Keyboard shortcuts

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