k8s_scheduler_extender

package
v0.0.0-...-3a5edd2 Latest Latest
Warning

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

Go to latest
Published: Dec 19, 2019 License: Apache-2.0 Imports: 12 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddBind

func AddBind(router *httprouter.Router, bind Bind)

func AddPredicate

func AddPredicate(router *httprouter.Router, predicate Predicate)

func AddPreemption

func AddPreemption(router *httprouter.Router, preemption Preemption)

func AddPrioritize

func AddPrioritize(router *httprouter.Router, prioritize Prioritize)

func AddVersion

func AddVersion(router *httprouter.Router)

func BindRoute

func BindRoute(bind Bind) httprouter.Handle

func DebugLogging

func DebugLogging(h httprouter.Handle, path string) httprouter.Handle

func PredicateRoute

func PredicateRoute(predicate Predicate) httprouter.Handle

func PreemptionRoute

func PreemptionRoute(preemption Preemption) httprouter.Handle

func PrioritizeRoute

func PrioritizeRoute(prioritize Prioritize) httprouter.Handle

func StringToLevel

func StringToLevel(levelStr string) colog.Level

func VersionRoute

func VersionRoute(w http.ResponseWriter, r *http.Request, _ httprouter.Params)

Types

type Bind

type Bind struct {
	Func func(podName string, podNamespace string, podUID types.UID, node string) error
}

type Predicate

type Predicate struct {
	Name string
	Func func(pod v1.Pod, node v1.Node) (bool, error)
}

type Preemption

type Preemption struct {
	Func func(
		pod v1.Pod,
		nodeNameToVictims map[string]*schedulerapi.Victims,
		nodeNameToMetaVictims map[string]*schedulerapi.MetaVictims,
	) map[string]*schedulerapi.MetaVictims
}

type Prioritize

type Prioritize struct {
	Name string
	Func func(pod v1.Pod, nodes []v1.Node) (*schedulerapi.HostPriorityList, error)
}

func (Prioritize) Handler

Jump to

Keyboard shortcuts

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