package stateful
import "k8s.io/kubernetes/pkg/scheduler/framework/plugins/examples/stateful"
Index ¶
- Constants
- func New(config *runtime.Unknown, _ framework.FrameworkHandle) (framework.Plugin, error)
- type MultipointExample
- func (mp *MultipointExample) Name() string
- func (mp *MultipointExample) PreBind(ctx context.Context, state *framework.CycleState, pod *v1.Pod, nodeName string) *framework.Status
- func (mp *MultipointExample) Reserve(ctx context.Context, state *framework.CycleState, pod *v1.Pod, nodeName string) *framework.Status
Constants ¶
const Name = "multipoint-plugin-example"
Name is the name of the plug used in Registry and configurations.
Functions ¶
func New ¶
New initializes a new plugin and returns it.
Types ¶
type MultipointExample ¶
type MultipointExample struct {
// contains filtered or unexported fields
}
MultipointExample is an example plugin that is executed at multiple extension points. This plugin is stateful. It receives arguments at initialization (NewMultipointPlugin) and changes its state when it is executed.
func (*MultipointExample) Name ¶
func (mp *MultipointExample) Name() string
Name returns name of the plugin. It is used in logs, etc.
func (*MultipointExample) PreBind ¶
func (mp *MultipointExample) PreBind(ctx context.Context, state *framework.CycleState, pod *v1.Pod, nodeName string) *framework.Status
PreBind is the functions invoked by the framework at "prebind" extension point.
func (*MultipointExample) Reserve ¶
func (mp *MultipointExample) Reserve(ctx context.Context, state *framework.CycleState, pod *v1.Pod, nodeName string) *framework.Status
Reserve is the functions invoked by the framework at "reserve" extension point.
Source Files ¶
stateful.go
- Version
- v1.17.17
- Published
- Jan 13, 2021
- Platform
- js/wasm
- Imports
- 7 packages
- Last checked
- 3 minutes ago –
Tools for package owners.