Documentation ¶
Index ¶
Constants ¶
View Source
const (
Namespace = "d8-upmeter"
)
Variables ¶
View Source
var ( // ErrSkip is the legal abortion of scheduling ErrSkip = fmt.Errorf("scheduling skipped") )
Functions ¶
This section is empty.
Types ¶
type Cleaner ¶
func NewCleaner ¶
func NewCleaner(patcher *object_patch.PatchCollector, logger *logrus.Entry, pods []snapshot.Pod) Cleaner
type Deleter ¶
type Deleter interface {
Delete(string)
}
func NewPodDeleter ¶ added in v1.26.0
func NewPodDeleter(patcher *object_patch.PatchCollector, logger *logrus.Entry) Deleter
type IndexSelector ¶
type IndexSelectorPipe ¶
type IndexSelectorPipe []IndexSelector
IndexSelectorPipe is the sequential wrapper for other sts selectors. The result is returned from the first successful selection or abortion error. Selection is ignored on next error.
func NewStatefulSetSelector ¶
type NodeFilterPipe ¶
type NodeFilterPipe []NodeFilter
NodeFilterPipe is the sequential wrapper for other node filters. A result of each filter is passed to the next one. The filters do not share knowledge about each other. Filters are responsible to handle empty input their own way.
func NewNodeSelector ¶
func NewNodeSelector(state State) NodeFilterPipe
type Scheduler ¶
type Scheduler struct {
// contains filtered or unexported fields
}
func New ¶
func New(indexSelector IndexSelector, nodeFilter NodeFilter, cleaner Cleaner, image, storageClass string) *Scheduler
Click to show internal directories.
Click to hide internal directories.