topolvm: github.com/cybozu-go/topolvm/scheduler Index | Files

package scheduler

import "github.com/cybozu-go/topolvm/scheduler"

Index

Package Files

api.go predicate.go prioritize.go route.go

func NewHandler Uses

func NewHandler(divisor float64) (http.Handler, error)

NewHandler return new http.Handler of the scheduler extender

type ExtenderArgs Uses

type ExtenderArgs struct {
    // Pod being scheduled
    Pod *apiv1.Pod `json:"pod"`
    // List of candidate nodes where the pod can be scheduled; to be populated
    // only if ExtenderConfig.NodeCacheCapable == false
    Nodes *apiv1.NodeList `json:"nodes,omitempty"`
    // List of candidate node names where the pod can be scheduled; to be
    // populated only if ExtenderConfig.NodeCacheCapable == true
    NodeNames *[]string `json:"nodenames,omitempty"`
}

ExtenderArgs is copied from https://godoc.org/k8s.io/kubernetes/pkg/scheduler/api/v1#ExtenderArgs

type ExtenderFilterResult Uses

type ExtenderFilterResult struct {
    // Filtered set of nodes where the pod can be scheduled; to be populated
    // only if ExtenderConfig.NodeCacheCapable == false
    Nodes *apiv1.NodeList `json:"nodes,omitempty"`
    // Filtered set of nodes where the pod can be scheduled; to be populated
    // only if ExtenderConfig.NodeCacheCapable == true
    NodeNames *[]string `json:"nodenames,omitempty"`
    // Filtered out nodes where the pod can't be scheduled and the failure messages
    FailedNodes FailedNodesMap `json:"failedNodes,omitempty"`
    // Error message indicating failure
    Error string `json:"error,omitempty"`
}

ExtenderFilterResult is copied from https://godoc.org/k8s.io/kubernetes/pkg/scheduler/api/v1#ExtenderFilterResult

type FailedNodesMap Uses

type FailedNodesMap map[string]string

FailedNodesMap is copied from https://godoc.org/k8s.io/kubernetes/pkg/scheduler/api/v1#FailedNodesMap

type HostPriority Uses

type HostPriority struct {
    // Name of the host
    Host string `json:"host"`
    // Score associated with the host
    Score int `json:"score"`
}

HostPriority is copied from https://godoc.org/k8s.io/kubernetes/pkg/scheduler/api/v1#HostPriority

type HostPriorityList Uses

type HostPriorityList []HostPriority

HostPriorityList is copied from https://godoc.org/k8s.io/kubernetes/pkg/scheduler/api/v1#HostPriorityList

Package scheduler imports 7 packages (graph). Updated 2019-08-05. Refresh now. Tools for package owners.