archfilter

package
v0.0.8 Latest Latest
Warning

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

Go to latest
Published: Jul 18, 2023 License: Apache-2.0 Imports: 22 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Name is plugin name
	Name = "archfilter"
)

Variables

This section is empty.

Functions

func AddToCache

func AddToCache(cacheStore cache.Store, object ImageArch) error

func DecodeInto

func DecodeInto(obj runtime.Object, into interface{}) error

func DeleteFromCache

func DeleteFromCache(cacheStore cache.Store, object string) error

func New

func New(obj runtime.Object, handle framework.Handle) (framework.Plugin, error)

Types

type ArchFilter

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

func (*ArchFilter) Filter

func (s *ArchFilter) Filter(ctx context.Context, state *framework.CycleState, pod *v1.Pod, node *framework.NodeInfo) *framework.Status

func (*ArchFilter) Name

func (s *ArchFilter) Name() string

func (*ArchFilter) Score

func (s *ArchFilter) Score(ctx context.Context, state *framework.CycleState, p *v1.Pod, nodeName string) (int64, *framework.Status)

func (*ArchFilter) ScoreExtensions

func (s *ArchFilter) ScoreExtensions() framework.ScoreExtensions

ScoreExtensions of the Score plugin.

type ImageArch

type ImageArch struct {
	Image         string
	Architectures []string
}

func FetchFromCache

func FetchFromCache(cacheStore cache.Store, key string) (ImageArch, error)

func GetPodArchitectures

func GetPodArchitectures(pod *v1.Pod) ([]ImageArch, error)

type WeightArgs

type WeightArgs struct {
	Weight map[string]int64 `json:"weight,omitempty"`
}

Jump to

Keyboard shortcuts

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