scheduler

package
v0.7.1 Latest Latest
Warning

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

Go to latest
Published: Jun 17, 2020 License: Apache-2.0 Imports: 28 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

View Source
const (
	// Resource is the resource that will trigger the scheduler extender.
	Resource = "pmem-csi.intel.com/scheduler"
)

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 CapacityViaRegistry

func CapacityViaRegistry(rs *registryserver.RegistryServer) Capacity

Jump to

Keyboard shortcuts

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