kubernetesk8s.io/kubernetes/pkg/scheduler/algorithm/predicates Index | Files

package predicates

import "k8s.io/kubernetes/pkg/scheduler/algorithm/predicates"

Index

Types

type InsufficientResourceError

type InsufficientResourceError struct {
	noderesources.InsufficientResource
}

InsufficientResourceError is an error type that indicates what kind of resource limit is hit and caused the unfitting failure.

func (*InsufficientResourceError) Error

func (e *InsufficientResourceError) Error() string

func (*InsufficientResourceError) GetInsufficientAmount

func (e *InsufficientResourceError) GetInsufficientAmount() int64

GetInsufficientAmount returns the amount of the insufficient resource of the error.

func (*InsufficientResourceError) GetReason

func (e *InsufficientResourceError) GetReason() string

GetReason returns the reason of the InsufficientResourceError.

type PredicateFailureError

type PredicateFailureError struct {
	PredicateName string
	PredicateDesc string
}

PredicateFailureError describes a failure error of predicate.

func (*PredicateFailureError) Error

func (e *PredicateFailureError) Error() string

func (*PredicateFailureError) GetReason

func (e *PredicateFailureError) GetReason() string

GetReason returns the reason of the PredicateFailureError.

type PredicateFailureReason

type PredicateFailureReason interface {
	GetReason() string
}

PredicateFailureReason interface represents the failure reason of a predicate.

func GeneralPredicates

func GeneralPredicates(pod *v1.Pod, _ interface{}, nodeInfo *schedulernodeinfo.NodeInfo) (bool, []PredicateFailureReason, error)

GeneralPredicates checks a group of predicates that the kubelet cares about.

Source Files

predicates.go

Version
v1.18.0-alpha.2
Published
Jan 21, 2020
Platform
js/wasm
Imports
8 packages
Last checked
32 seconds ago

Tools for package owners.