Documentation
¶
Index ¶
- Constants
- func New(ctx context.Context, plArgs runtime.Object, fh fwk.Handle, ...) (fwk.Plugin, error)
- type NodeDeclaredFeatures
- func (pl *NodeDeclaredFeatures) EventsToRegister(_ context.Context) ([]fwk.ClusterEventWithHint, error)
- func (pl *NodeDeclaredFeatures) Filter(ctx context.Context, cycleState fwk.CycleState, pod *v1.Pod, ...) *fwk.Status
- func (pl *NodeDeclaredFeatures) Name() string
- func (pl *NodeDeclaredFeatures) PreFilter(ctx context.Context, cycleState fwk.CycleState, pod *v1.Pod, ...) (*fwk.PreFilterResult, *fwk.Status)
- func (pl *NodeDeclaredFeatures) PreFilterExtensions() fwk.PreFilterExtensions
- func (pl *NodeDeclaredFeatures) SignPod(ctx context.Context, pod *v1.Pod) ([]fwk.SignFragment, *fwk.Status)
Constants ¶
View Source
const ( // Name is the name of the plugin used in the plugin registry and configurations. Name = names.NodeDeclaredFeatures )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type NodeDeclaredFeatures ¶
type NodeDeclaredFeatures struct {
// contains filtered or unexported fields
}
NodeDeclaredFeatures is a plugin that checks if a node has all the features required by a pod.
func (*NodeDeclaredFeatures) EventsToRegister ¶
func (pl *NodeDeclaredFeatures) EventsToRegister(_ context.Context) ([]fwk.ClusterEventWithHint, error)
EventsToRegister returns events that may make a pod schedulable. It is required for the EnqueueExtensions interface.
func (*NodeDeclaredFeatures) Filter ¶
func (pl *NodeDeclaredFeatures) Filter(ctx context.Context, cycleState fwk.CycleState, pod *v1.Pod, nodeInfo fwk.NodeInfo) *fwk.Status
Filter checks if the node has the required features.
func (*NodeDeclaredFeatures) Name ¶
func (pl *NodeDeclaredFeatures) Name() string
Name returns name of the plugin. It is used in logs, etc.
func (*NodeDeclaredFeatures) PreFilter ¶
func (pl *NodeDeclaredFeatures) PreFilter(ctx context.Context, cycleState fwk.CycleState, pod *v1.Pod, nodes []fwk.NodeInfo) (*fwk.PreFilterResult, *fwk.Status)
PreFilter checks if the pod has any feature requirements.
func (*NodeDeclaredFeatures) PreFilterExtensions ¶
func (pl *NodeDeclaredFeatures) PreFilterExtensions() fwk.PreFilterExtensions
PreFilterExtensions returns pre-filter extensions, pod add and remove.
Click to show internal directories.
Click to hide internal directories.