Documentation

Index

Constants

View Source
const ErrReasonFake = "Nodes failed the fake plugin"

    ErrReasonFake is a fake error message denotes the filter function errored.

    Variables

    This section is empty.

    Functions

    func ErrorPredicateExtender

    func ErrorPredicateExtender(pod *v1.Pod, node *v1.Node) (bool, error)

      ErrorPredicateExtender implements FitPredicate function to always return error.

      func ErrorPrioritizerExtender

      func ErrorPrioritizerExtender(pod *v1.Pod, nodes []*v1.Node) (*framework.NodeScoreList, error)

        ErrorPrioritizerExtender implements PriorityFunc function to always return error.

        func FalsePredicateExtender

        func FalsePredicateExtender(pod *v1.Pod, node *v1.Node) (bool, error)

          FalsePredicateExtender implements FitPredicate function to always return false.

          func MakeNodesAndPods

          func MakeNodesAndPods(existingPodsNum, allNodesNum int) (existingPods []*v1.Pod, allNodes []*v1.Node)

            MakeNodesAndPods serves as a testing helper to generate regular Nodes and Pods that don't use any advanced scheduling features.

            func MakeNodesAndPodsForEvenPodsSpread

            func MakeNodesAndPodsForEvenPodsSpread(labels map[string]string, existingPodsNum, allNodesNum, filteredNodesNum int) (existingPods []*v1.Pod, allNodes []*v1.Node, filteredNodes []*v1.Node)

              MakeNodesAndPodsForEvenPodsSpread serves as a testing helper for EvenPodsSpread feature. It builds a fake cluster containing running Pods and Nodes. The size of Pods and Nodes are determined by input arguments. The specs of Pods and Nodes are generated with the following rules: - Each generated node is applied with a unique label: "node: node<i>". - Each generated node is applied with a rotating label: "zone: zone[0-9]". - Depending on the input labels, each generated pod will be applied with

              label "key1", "key1,key2", ..., "key1,key2,...,keyN" in a rotating manner.
              

              func MakeNodesAndPodsForPodAffinity

              func MakeNodesAndPodsForPodAffinity(existingPodsNum, allNodesNum int) (existingPods []*v1.Pod, allNodes []*v1.Node)

                MakeNodesAndPodsForPodAffinity serves as a testing helper for Pod(Anti)Affinity feature. It builds a fake cluster containing running Pods and Nodes. For simplicity, the Nodes will be labelled with "region", "zone" and "node". Nodes[i] will be applied with: - "region": "region" + i%3 - "zone": "zone" + i%10 - "node": "node" + i The Pods will be applied with various combinations of PodAffinity and PodAntiAffinity terms.

                func NewFakeFilterPlugin

                func NewFakeFilterPlugin(failedNodeReturnCodeMap map[string]framework.Code) frameworkruntime.PluginFactory

                  NewFakeFilterPlugin initializes a fakeFilterPlugin and returns it.

                  func NewFakePermitPlugin

                  func NewFakePermitPlugin(status *framework.Status, timeout time.Duration) frameworkruntime.PluginFactory

                    NewFakePermitPlugin initializes a fakePermitPlugin and returns it.

                    func NewFakePreBindPlugin

                    func NewFakePreBindPlugin(status *framework.Status) frameworkruntime.PluginFactory

                      NewFakePreBindPlugin initializes a fakePreBindPlugin and returns it.

                      func NewFakePreFilterPlugin

                      func NewFakePreFilterPlugin(status *framework.Status) frameworkruntime.PluginFactory

                        NewFakePreFilterPlugin initializes a fakePreFilterPlugin and returns it.

                        func NewFakeReservePlugin

                        func NewFakeReservePlugin(status *framework.Status) frameworkruntime.PluginFactory

                          NewFakeReservePlugin initializes a fakeReservePlugin and returns it.

                          func NewFalseFilterPlugin

                          func NewFalseFilterPlugin(_ runtime.Object, _ framework.Handle) (framework.Plugin, error)

                            NewFalseFilterPlugin initializes a FalseFilterPlugin and returns it.

                            func NewFramework

                            func NewFramework(fns []RegisterPluginFunc, opts ...runtime.Option) (framework.Framework, error)

                              NewFramework creates a Framework from the register functions and options.

                              func NewMatchFilterPlugin

                              func NewMatchFilterPlugin(_ runtime.Object, _ framework.Handle) (framework.Plugin, error)

                                NewMatchFilterPlugin initializes a MatchFilterPlugin and returns it.

                                func NewNode2PrioritizerPlugin

                                func NewNode2PrioritizerPlugin() frameworkruntime.PluginFactory

                                  NewNode2PrioritizerPlugin returns a factory function to build node2PrioritizerPlugin.

                                  func NewTrueFilterPlugin

                                  func NewTrueFilterPlugin(_ runtime.Object, _ framework.Handle) (framework.Plugin, error)

                                    NewTrueFilterPlugin initializes a TrueFilterPlugin and returns it.

                                    func Node1PredicateExtender

                                    func Node1PredicateExtender(pod *v1.Pod, node *v1.Node) (bool, error)

                                      Node1PredicateExtender implements FitPredicate function to return true when the given node's name is "node1"; otherwise return false.

                                      func Node1PrioritizerExtender

                                      func Node1PrioritizerExtender(pod *v1.Pod, nodes []*v1.Node) (*framework.NodeScoreList, error)

                                        Node1PrioritizerExtender implements PriorityFunc function to give score 10 if the given node's name is "node1"; otherwise score 1.

                                        func Node2PredicateExtender

                                        func Node2PredicateExtender(pod *v1.Pod, node *v1.Node) (bool, error)

                                          Node2PredicateExtender implements FitPredicate function to return true when the given node's name is "node2"; otherwise return false.

                                          func Node2PrioritizerExtender

                                          func Node2PrioritizerExtender(pod *v1.Pod, nodes []*v1.Node) (*framework.NodeScoreList, error)

                                            Node2PrioritizerExtender implements PriorityFunc function to give score 10 if the given node's name is "node2"; otherwise score 1.

                                            func TruePredicateExtender

                                            func TruePredicateExtender(pod *v1.Pod, node *v1.Node) (bool, error)

                                              TruePredicateExtender implements FitPredicate function to always return true.

                                              Types

                                              type FakeExtender

                                              type FakeExtender struct {
                                              	Predicates       []FitPredicate
                                              	Prioritizers     []PriorityConfig
                                              	Weight           int64
                                              	NodeCacheCapable bool
                                              	FilteredNodes    []*v1.Node
                                              	UnInterested     bool
                                              	Ignorable        bool
                                              
                                              	// Cached node information for fake extender
                                              	CachedNodeNameToInfo map[string]*framework.NodeInfo
                                              }

                                                FakeExtender is a data struct which implements the Extender interface.

                                                func (*FakeExtender) Bind

                                                func (f *FakeExtender) Bind(binding *v1.Binding) error

                                                  Bind implements the extender Bind function.

                                                  func (*FakeExtender) Filter

                                                  func (f *FakeExtender) Filter(pod *v1.Pod, nodes []*v1.Node) ([]*v1.Node, extenderv1.FailedNodesMap, error)

                                                    Filter implements the extender Filter function.

                                                    func (*FakeExtender) IsBinder

                                                    func (f *FakeExtender) IsBinder() bool

                                                      IsBinder returns true indicating the extender implements the Binder function.

                                                      func (*FakeExtender) IsIgnorable

                                                      func (f *FakeExtender) IsIgnorable() bool

                                                        IsIgnorable returns a bool value indicating whether internal errors can be ignored.

                                                        func (*FakeExtender) IsInterested

                                                        func (f *FakeExtender) IsInterested(pod *v1.Pod) bool

                                                          IsInterested returns a bool true indicating whether extender

                                                          func (*FakeExtender) Name

                                                          func (f *FakeExtender) Name() string

                                                            Name returns name of the extender.

                                                            func (*FakeExtender) Prioritize

                                                            func (f *FakeExtender) Prioritize(pod *v1.Pod, nodes []*v1.Node) (*extenderv1.HostPriorityList, int64, error)

                                                              Prioritize implements the extender Prioritize function.

                                                              func (*FakeExtender) ProcessPreemption

                                                              func (f *FakeExtender) ProcessPreemption(
                                                              	pod *v1.Pod,
                                                              	nodeNameToVictims map[string]*extenderv1.Victims,
                                                              	nodeInfos framework.NodeInfoLister,
                                                              ) (map[string]*extenderv1.Victims, error)

                                                                ProcessPreemption implements the extender preempt function.

                                                                func (*FakeExtender) SupportsPreemption

                                                                func (f *FakeExtender) SupportsPreemption() bool

                                                                  SupportsPreemption returns true indicating the extender supports preemption.

                                                                  type FakeFilterPlugin

                                                                  type FakeFilterPlugin struct {
                                                                  	NumFilterCalled         int32
                                                                  	FailedNodeReturnCodeMap map[string]framework.Code
                                                                  }

                                                                    FakeFilterPlugin is a test filter plugin to record how many times its Filter() function have been called, and it returns different 'Code' depending on its internal 'failedNodeReturnCodeMap'.

                                                                    func (*FakeFilterPlugin) Filter

                                                                      Filter invoked at the filter extension point.

                                                                      func (*FakeFilterPlugin) Name

                                                                      func (pl *FakeFilterPlugin) Name() string

                                                                        Name returns name of the plugin.

                                                                        type FakePermitPlugin

                                                                        type FakePermitPlugin struct {
                                                                        	Status  *framework.Status
                                                                        	Timeout time.Duration
                                                                        }

                                                                          FakePermitPlugin is a test permit plugin.

                                                                          func (*FakePermitPlugin) Name

                                                                          func (pl *FakePermitPlugin) Name() string

                                                                            Name returns name of the plugin.

                                                                            func (*FakePermitPlugin) Permit

                                                                              Permit invoked at the Permit extension point.

                                                                              type FakePreBindPlugin

                                                                              type FakePreBindPlugin struct {
                                                                              	Status *framework.Status
                                                                              }

                                                                                FakePreBindPlugin is a test prebind plugin.

                                                                                func (*FakePreBindPlugin) Name

                                                                                func (pl *FakePreBindPlugin) Name() string

                                                                                  Name returns name of the plugin.

                                                                                  func (*FakePreBindPlugin) PreBind

                                                                                    PreBind invoked at the PreBind extension point.

                                                                                    type FakePreFilterPlugin

                                                                                    type FakePreFilterPlugin struct {
                                                                                    	Status *framework.Status
                                                                                    }

                                                                                      FakePreFilterPlugin is a test filter plugin.

                                                                                      func (*FakePreFilterPlugin) Name

                                                                                      func (pl *FakePreFilterPlugin) Name() string

                                                                                        Name returns name of the plugin.

                                                                                        func (*FakePreFilterPlugin) PreFilter

                                                                                          PreFilter invoked at the PreFilter extension point.

                                                                                          func (*FakePreFilterPlugin) PreFilterExtensions

                                                                                          func (pl *FakePreFilterPlugin) PreFilterExtensions() framework.PreFilterExtensions

                                                                                            PreFilterExtensions no extensions implemented by this plugin.

                                                                                            type FakeReservePlugin

                                                                                            type FakeReservePlugin struct {
                                                                                            	Status *framework.Status
                                                                                            }

                                                                                              FakeReservePlugin is a test reserve plugin.

                                                                                              func (*FakeReservePlugin) Name

                                                                                              func (pl *FakeReservePlugin) Name() string

                                                                                                Name returns name of the plugin.

                                                                                                func (*FakeReservePlugin) Reserve

                                                                                                  Reserve invoked at the Reserve extension point.

                                                                                                  func (*FakeReservePlugin) Unreserve

                                                                                                  func (pl *FakeReservePlugin) Unreserve(_ context.Context, _ *framework.CycleState, _ *v1.Pod, _ string)

                                                                                                    Unreserve invoked at the Unreserve extension point.

                                                                                                    type FalseFilterPlugin

                                                                                                    type FalseFilterPlugin struct{}

                                                                                                      FalseFilterPlugin is a filter plugin which always return Unschedulable when Filter function is called.

                                                                                                      func (*FalseFilterPlugin) Filter

                                                                                                        Filter invoked at the filter extension point.

                                                                                                        func (*FalseFilterPlugin) Name

                                                                                                        func (pl *FalseFilterPlugin) Name() string

                                                                                                          Name returns name of the plugin.

                                                                                                          type FitPredicate

                                                                                                          type FitPredicate func(pod *v1.Pod, node *v1.Node) (bool, error)

                                                                                                            FitPredicate is a function type which is used in fake extender.

                                                                                                            type LabelSelectorWrapper

                                                                                                            type LabelSelectorWrapper struct{ metav1.LabelSelector }

                                                                                                              LabelSelectorWrapper wraps a LabelSelector inside.

                                                                                                              func MakeLabelSelector

                                                                                                              func MakeLabelSelector() *LabelSelectorWrapper

                                                                                                                MakeLabelSelector creates a LabelSelector wrapper.

                                                                                                                func (*LabelSelectorWrapper) Exists

                                                                                                                  Exists injects a matchExpression (with an operator Exists) to the inner labelSelector.

                                                                                                                  func (*LabelSelectorWrapper) In

                                                                                                                    In injects a matchExpression (with an operator In) to the inner labelSelector.

                                                                                                                    func (*LabelSelectorWrapper) Label

                                                                                                                      Label applies a {k,v} pair to the inner LabelSelector.

                                                                                                                      func (*LabelSelectorWrapper) NotExist

                                                                                                                        NotExist injects a matchExpression (with an operator NotExist) to the inner labelSelector.

                                                                                                                        func (*LabelSelectorWrapper) NotIn

                                                                                                                        func (s *LabelSelectorWrapper) NotIn(key string, vals []string) *LabelSelectorWrapper

                                                                                                                          NotIn injects a matchExpression (with an operator NotIn) to the inner labelSelector.

                                                                                                                          func (*LabelSelectorWrapper) Obj

                                                                                                                            Obj returns the inner LabelSelector.

                                                                                                                            type MatchFilterPlugin

                                                                                                                            type MatchFilterPlugin struct{}

                                                                                                                              MatchFilterPlugin is a filter plugin which return Success when the evaluated pod and node have the same name; otherwise return Unschedulable.

                                                                                                                              func (*MatchFilterPlugin) Filter

                                                                                                                                Filter invoked at the filter extension point.

                                                                                                                                func (*MatchFilterPlugin) Name

                                                                                                                                func (pl *MatchFilterPlugin) Name() string

                                                                                                                                  Name returns name of the plugin.

                                                                                                                                  type NodeSelectorWrapper

                                                                                                                                  type NodeSelectorWrapper struct{ v1.NodeSelector }

                                                                                                                                    NodeSelectorWrapper wraps a NodeSelector inside.

                                                                                                                                    func MakeNodeSelector

                                                                                                                                    func MakeNodeSelector() *NodeSelectorWrapper

                                                                                                                                      MakeNodeSelector creates a NodeSelector wrapper.

                                                                                                                                      func (*NodeSelectorWrapper) In

                                                                                                                                        In injects a matchExpression (with an operator IN) as a selectorTerm to the inner nodeSelector. NOTE: appended selecterTerms are ORed.

                                                                                                                                        func (*NodeSelectorWrapper) NotIn

                                                                                                                                        func (s *NodeSelectorWrapper) NotIn(key string, vals []string) *NodeSelectorWrapper

                                                                                                                                          NotIn injects a matchExpression (with an operator NotIn) as a selectorTerm to the inner nodeSelector.

                                                                                                                                          func (*NodeSelectorWrapper) Obj

                                                                                                                                            Obj returns the inner NodeSelector.

                                                                                                                                            type NodeWrapper

                                                                                                                                            type NodeWrapper struct{ v1.Node }

                                                                                                                                              NodeWrapper wraps a Node inside.

                                                                                                                                              func MakeNode

                                                                                                                                              func MakeNode() *NodeWrapper

                                                                                                                                                MakeNode creates a Node wrapper.

                                                                                                                                                func (*NodeWrapper) Capacity

                                                                                                                                                func (n *NodeWrapper) Capacity(resources map[v1.ResourceName]string) *NodeWrapper

                                                                                                                                                  Capacity sets the capacity and the allocatable resources of the inner node. Each entry in `resources` corresponds to a resource name and its quantity. By default, the capacity and allocatable number of pods are set to 32.

                                                                                                                                                  func (*NodeWrapper) Images

                                                                                                                                                  func (n *NodeWrapper) Images(images map[string]int64) *NodeWrapper

                                                                                                                                                    Images sets the images of the inner node. Each entry in `images` corresponds to an image name and its size in bytes.

                                                                                                                                                    func (*NodeWrapper) Label

                                                                                                                                                    func (n *NodeWrapper) Label(k, v string) *NodeWrapper

                                                                                                                                                      Label applies a {k,v} label pair to the inner node.

                                                                                                                                                      func (*NodeWrapper) Name

                                                                                                                                                      func (n *NodeWrapper) Name(s string) *NodeWrapper

                                                                                                                                                        Name sets `s` as the name of the inner pod.

                                                                                                                                                        func (*NodeWrapper) Obj

                                                                                                                                                        func (n *NodeWrapper) Obj() *v1.Node

                                                                                                                                                          Obj returns the inner Node.

                                                                                                                                                          func (*NodeWrapper) UID

                                                                                                                                                          func (n *NodeWrapper) UID(s string) *NodeWrapper

                                                                                                                                                            UID sets `s` as the UID of the inner pod.

                                                                                                                                                            type PodAffinityKind

                                                                                                                                                            type PodAffinityKind int

                                                                                                                                                              PodAffinityKind represents different kinds of PodAffinity.

                                                                                                                                                              const (
                                                                                                                                                              	// NilPodAffinity is a no-op which doesn't apply any PodAffinity.
                                                                                                                                                              	NilPodAffinity PodAffinityKind = iota
                                                                                                                                                              	// PodAffinityWithRequiredReq applies a HARD requirement to pod.spec.affinity.PodAffinity.
                                                                                                                                                              	PodAffinityWithRequiredReq
                                                                                                                                                              	// PodAffinityWithPreferredReq applies a SOFT requirement to pod.spec.affinity.PodAffinity.
                                                                                                                                                              	PodAffinityWithPreferredReq
                                                                                                                                                              	// PodAffinityWithRequiredPreferredReq applies HARD and SOFT requirements to pod.spec.affinity.PodAffinity.
                                                                                                                                                              	PodAffinityWithRequiredPreferredReq
                                                                                                                                                              	// PodAntiAffinityWithRequiredReq applies a HARD requirement to pod.spec.affinity.PodAntiAffinity.
                                                                                                                                                              	PodAntiAffinityWithRequiredReq
                                                                                                                                                              	// PodAntiAffinityWithPreferredReq applies a SOFT requirement to pod.spec.affinity.PodAntiAffinity.
                                                                                                                                                              	PodAntiAffinityWithPreferredReq
                                                                                                                                                              	// PodAntiAffinityWithRequiredPreferredReq applies HARD and SOFT requirements to pod.spec.affinity.PodAntiAffinity.
                                                                                                                                                              	PodAntiAffinityWithRequiredPreferredReq
                                                                                                                                                              )

                                                                                                                                                              type PodWrapper

                                                                                                                                                              type PodWrapper struct{ v1.Pod }

                                                                                                                                                                PodWrapper wraps a Pod inside.

                                                                                                                                                                func MakePod

                                                                                                                                                                func MakePod() *PodWrapper

                                                                                                                                                                  MakePod creates a Pod wrapper.

                                                                                                                                                                  func (*PodWrapper) Container

                                                                                                                                                                  func (p *PodWrapper) Container(s string) *PodWrapper

                                                                                                                                                                    Container appends a container into PodSpec of the inner pod.

                                                                                                                                                                    func (*PodWrapper) Label

                                                                                                                                                                    func (p *PodWrapper) Label(k, v string) *PodWrapper

                                                                                                                                                                      Label sets a {k,v} pair to the inner pod.

                                                                                                                                                                      func (*PodWrapper) Name

                                                                                                                                                                      func (p *PodWrapper) Name(s string) *PodWrapper

                                                                                                                                                                        Name sets `s` as the name of the inner pod.

                                                                                                                                                                        func (*PodWrapper) Namespace

                                                                                                                                                                        func (p *PodWrapper) Namespace(s string) *PodWrapper

                                                                                                                                                                          Namespace sets `s` as the namespace of the inner pod.

                                                                                                                                                                          func (*PodWrapper) Node

                                                                                                                                                                          func (p *PodWrapper) Node(s string) *PodWrapper

                                                                                                                                                                            Node sets `s` as the nodeName of the inner pod.

                                                                                                                                                                            func (*PodWrapper) NodeAffinityIn

                                                                                                                                                                            func (p *PodWrapper) NodeAffinityIn(key string, vals []string) *PodWrapper

                                                                                                                                                                              NodeAffinityIn creates a HARD node affinity (with the operator In) and injects into the inner pod.

                                                                                                                                                                              func (*PodWrapper) NodeAffinityNotIn

                                                                                                                                                                              func (p *PodWrapper) NodeAffinityNotIn(key string, vals []string) *PodWrapper

                                                                                                                                                                                NodeAffinityNotIn creates a HARD node affinity (with the operator NotIn) and injects into the inner pod.

                                                                                                                                                                                func (*PodWrapper) NodeSelector

                                                                                                                                                                                func (p *PodWrapper) NodeSelector(m map[string]string) *PodWrapper

                                                                                                                                                                                  NodeSelector sets `m` as the nodeSelector of the inner pod.

                                                                                                                                                                                  func (*PodWrapper) NominatedNodeName

                                                                                                                                                                                  func (p *PodWrapper) NominatedNodeName(n string) *PodWrapper

                                                                                                                                                                                    NominatedNodeName sets `n` as the .Status.NominatedNodeName of the inner pod.

                                                                                                                                                                                    func (*PodWrapper) Obj

                                                                                                                                                                                    func (p *PodWrapper) Obj() *v1.Pod

                                                                                                                                                                                      Obj returns the inner Pod.

                                                                                                                                                                                      func (*PodWrapper) PodAffinityExists

                                                                                                                                                                                      func (p *PodWrapper) PodAffinityExists(labelKey, topologyKey string, kind PodAffinityKind) *PodWrapper

                                                                                                                                                                                        PodAffinityExists creates an PodAffinity with the operator "Exists" and injects into the inner pod.

                                                                                                                                                                                        func (*PodWrapper) PodAntiAffinityExists

                                                                                                                                                                                        func (p *PodWrapper) PodAntiAffinityExists(labelKey, topologyKey string, kind PodAffinityKind) *PodWrapper

                                                                                                                                                                                          PodAntiAffinityExists creates an PodAntiAffinity with the operator "Exists" and injects into the inner pod.

                                                                                                                                                                                          func (*PodWrapper) PreemptionPolicy

                                                                                                                                                                                          func (p *PodWrapper) PreemptionPolicy(policy v1.PreemptionPolicy) *PodWrapper

                                                                                                                                                                                            PreemptionPolicy sets the give preemption policy to the inner pod.

                                                                                                                                                                                            func (*PodWrapper) Priority

                                                                                                                                                                                            func (p *PodWrapper) Priority(val int32) *PodWrapper

                                                                                                                                                                                              Priority sets a priority value into PodSpec of the inner pod.

                                                                                                                                                                                              func (*PodWrapper) Req

                                                                                                                                                                                              func (p *PodWrapper) Req(resMap map[v1.ResourceName]string) *PodWrapper

                                                                                                                                                                                                Req adds a new container to the inner pod with given resource map.

                                                                                                                                                                                                func (*PodWrapper) SchedulerName

                                                                                                                                                                                                func (p *PodWrapper) SchedulerName(s string) *PodWrapper

                                                                                                                                                                                                  SchedulerName sets `s` as the scheduler name of the inner pod.

                                                                                                                                                                                                  func (*PodWrapper) SpreadConstraint

                                                                                                                                                                                                  func (p *PodWrapper) SpreadConstraint(maxSkew int, tpKey string, mode v1.UnsatisfiableConstraintAction, selector *metav1.LabelSelector) *PodWrapper

                                                                                                                                                                                                    SpreadConstraint constructs a TopologySpreadConstraint object and injects into the inner pod.

                                                                                                                                                                                                    func (*PodWrapper) StartTime

                                                                                                                                                                                                    func (p *PodWrapper) StartTime(t metav1.Time) *PodWrapper

                                                                                                                                                                                                      StartTime sets `t` as .status.startTime for the inner pod.

                                                                                                                                                                                                      func (*PodWrapper) Terminating

                                                                                                                                                                                                      func (p *PodWrapper) Terminating() *PodWrapper

                                                                                                                                                                                                        Terminating sets the inner pod's deletionTimestamp to current timestamp.

                                                                                                                                                                                                        func (*PodWrapper) UID

                                                                                                                                                                                                        func (p *PodWrapper) UID(s string) *PodWrapper

                                                                                                                                                                                                          UID sets `s` as the UID of the inner pod.

                                                                                                                                                                                                          func (*PodWrapper) ZeroTerminationGracePeriod

                                                                                                                                                                                                          func (p *PodWrapper) ZeroTerminationGracePeriod() *PodWrapper

                                                                                                                                                                                                            ZeroTerminationGracePeriod sets the TerminationGracePeriodSeconds of the inner pod to zero.

                                                                                                                                                                                                            type PriorityConfig

                                                                                                                                                                                                            type PriorityConfig struct {
                                                                                                                                                                                                            	Function PriorityFunc
                                                                                                                                                                                                            	Weight   int64
                                                                                                                                                                                                            }

                                                                                                                                                                                                              PriorityConfig is used in fake extender to perform Prioritize function.

                                                                                                                                                                                                              type PriorityFunc

                                                                                                                                                                                                              type PriorityFunc func(pod *v1.Pod, nodes []*v1.Node) (*framework.NodeScoreList, error)

                                                                                                                                                                                                                PriorityFunc is a function type which is used in fake extender.

                                                                                                                                                                                                                type RegisterPluginFunc

                                                                                                                                                                                                                type RegisterPluginFunc func(reg *runtime.Registry, plugins *schedulerapi.Plugins, pluginConfigs []schedulerapi.PluginConfig)

                                                                                                                                                                                                                  RegisterPluginFunc is a function signature used in method RegisterFilterPlugin() to register a Filter Plugin to a given registry.

                                                                                                                                                                                                                  func RegisterBindPlugin

                                                                                                                                                                                                                  func RegisterBindPlugin(pluginName string, pluginNewFunc runtime.PluginFactory) RegisterPluginFunc

                                                                                                                                                                                                                    RegisterBindPlugin returns a function to register a Bind Plugin to a given registry.

                                                                                                                                                                                                                    func RegisterFilterPlugin

                                                                                                                                                                                                                    func RegisterFilterPlugin(pluginName string, pluginNewFunc runtime.PluginFactory) RegisterPluginFunc

                                                                                                                                                                                                                      RegisterFilterPlugin returns a function to register a Filter Plugin to a given registry.

                                                                                                                                                                                                                      func RegisterPermitPlugin

                                                                                                                                                                                                                      func RegisterPermitPlugin(pluginName string, pluginNewFunc runtime.PluginFactory) RegisterPluginFunc

                                                                                                                                                                                                                        RegisterPermitPlugin returns a function to register a Permit Plugin to a given registry.

                                                                                                                                                                                                                        func RegisterPluginAsExtensions

                                                                                                                                                                                                                        func RegisterPluginAsExtensions(pluginName string, pluginNewFunc runtime.PluginFactory, extensions ...string) RegisterPluginFunc

                                                                                                                                                                                                                          RegisterPluginAsExtensions returns a function to register a Plugin as given extensionPoints to a given registry.

                                                                                                                                                                                                                          func RegisterPluginAsExtensionsWithWeight

                                                                                                                                                                                                                          func RegisterPluginAsExtensionsWithWeight(pluginName string, weight int32, pluginNewFunc runtime.PluginFactory, extensions ...string) RegisterPluginFunc

                                                                                                                                                                                                                            RegisterPluginAsExtensionsWithWeight returns a function to register a Plugin as given extensionPoints with weight to a given registry.

                                                                                                                                                                                                                            func RegisterPreBindPlugin

                                                                                                                                                                                                                            func RegisterPreBindPlugin(pluginName string, pluginNewFunc runtime.PluginFactory) RegisterPluginFunc

                                                                                                                                                                                                                              RegisterPreBindPlugin returns a function to register a PreBind Plugin to a given registry.

                                                                                                                                                                                                                              func RegisterPreFilterPlugin

                                                                                                                                                                                                                              func RegisterPreFilterPlugin(pluginName string, pluginNewFunc runtime.PluginFactory) RegisterPluginFunc

                                                                                                                                                                                                                                RegisterPreFilterPlugin returns a function to register a PreFilter Plugin to a given registry.

                                                                                                                                                                                                                                func RegisterPreScorePlugin

                                                                                                                                                                                                                                func RegisterPreScorePlugin(pluginName string, pluginNewFunc runtime.PluginFactory) RegisterPluginFunc

                                                                                                                                                                                                                                  RegisterPreScorePlugin returns a function to register a Score Plugin to a given registry.

                                                                                                                                                                                                                                  func RegisterQueueSortPlugin

                                                                                                                                                                                                                                  func RegisterQueueSortPlugin(pluginName string, pluginNewFunc runtime.PluginFactory) RegisterPluginFunc

                                                                                                                                                                                                                                    RegisterQueueSortPlugin returns a function to register a QueueSort Plugin to a given registry.

                                                                                                                                                                                                                                    func RegisterReservePlugin

                                                                                                                                                                                                                                    func RegisterReservePlugin(pluginName string, pluginNewFunc runtime.PluginFactory) RegisterPluginFunc

                                                                                                                                                                                                                                      RegisterReservePlugin returns a function to register a Reserve Plugin to a given registry.

                                                                                                                                                                                                                                      func RegisterScorePlugin

                                                                                                                                                                                                                                      func RegisterScorePlugin(pluginName string, pluginNewFunc runtime.PluginFactory, weight int32) RegisterPluginFunc

                                                                                                                                                                                                                                        RegisterScorePlugin returns a function to register a Score Plugin to a given registry.

                                                                                                                                                                                                                                        type TrueFilterPlugin

                                                                                                                                                                                                                                        type TrueFilterPlugin struct{}

                                                                                                                                                                                                                                          TrueFilterPlugin is a filter plugin which always return Success when Filter function is called.

                                                                                                                                                                                                                                          func (*TrueFilterPlugin) Filter

                                                                                                                                                                                                                                            Filter invoked at the filter extension point.

                                                                                                                                                                                                                                            func (*TrueFilterPlugin) Name

                                                                                                                                                                                                                                            func (pl *TrueFilterPlugin) Name() string

                                                                                                                                                                                                                                              Name returns name of the plugin.