nodeaffinitywithcache

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Apr 18, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

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