scheduler

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Jan 13, 2022 License: Apache-2.0 Imports: 31 Imported by: 0

README

Scheduler

This directory contains the implementation of a scheduler extender. It is meant to be linked into the PMEM-CSI master controller because that is where we know about nodes and can get their current capacity.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewScheduler

func NewScheduler(
	driverName string,
	capacity Capacity,
	clientSet kubernetes.Interface,
	pvcLister corelisters.PersistentVolumeClaimLister,
	scLister storagelisters.StorageClassLister,
) (http.Handler, error)

Types

type Capacity

type Capacity interface {
	// NodeCapacity returns the available PMEM for the node.
	NodeCapacity(nodeName string) (int64, error)
}

Capacity provides information of remaining free PMEM per node.

func CapacityViaMetrics added in v0.9.0

func CapacityViaMetrics(namespace, driverName string, podLister corelistersv1.PodLister) Capacity

Jump to

Keyboard shortcuts

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