resultstore

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Oct 23, 2021 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// PassedFilterMessage is used when node pass the filter plugin.
	PassedFilterMessage = "passed"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Store

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

Store has results of scheduling. It manages all scheduling results and reflects all results on the pod annotation when the scheduling is finished.

func New

func New(informerFactory informers.SharedInformerFactory, client clientset.Interface, scorePluginWeight map[string]int32) *Store

func (*Store) AddFilterResult

func (s *Store) AddFilterResult(namespace, podName, nodeName, pluginName, reason string)

AddFilterResult adds filtering result to pod annotation.

func (*Store) AddNormalizedScoreResult

func (s *Store) AddNormalizedScoreResult(namespace, podName, nodeName, pluginName string, normalizedscore int64)

AddNormalizedScoreResult adds final score result to pod annotation.

func (*Store) AddScoreResult

func (s *Store) AddScoreResult(namespace, podName, nodeName, pluginName string, score int64)

AddScoreResult adds scoring result to pod annotation.

func (*Store) DeleteData

func (s *Store) DeleteData(k key)

Jump to

Keyboard shortcuts

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