package noop
import "k8s.io/kubernetes/pkg/scheduler/framework/plugins/noop"
Index ¶
- Constants
- func New(_ *runtime.Unknown, _ framework.FrameworkHandle) (framework.Plugin, error)
- type Filter
Constants ¶
const Name = "noop-filter"
Name is the name of the plugin used in Registry and configurations.
Functions ¶
func New ¶
New initializes a new plugin and returns it.
Types ¶
type Filter ¶
type Filter struct{}
Filter is a plugin that implements the filter plugin and always returns Success. This is just to make sure that all code dependencies are properly addressed while working on legitimate plugins. Note: The struct cannot be named NoOpFilter, otherwise the golint check cannot pass
func (Filter) Filter ¶
func (n Filter) Filter(pc *framework.PluginContext, pod *v1.Pod, nodeInfo *nodeinfo.NodeInfo) *framework.Status
Filter invoked at the filter extension point.
func (Filter) Name ¶
Name returns name of the plugin. It is used in logs, etc.
Source Files ¶
noop.go
- Version
- v1.17.0-alpha.1
- Published
- Oct 2, 2019
- Platform
- linux/amd64
- Imports
- 4 packages
- Last checked
- 6 minutes ago –
Tools for package owners.