package prebind
import "k8s.io/kubernetes/pkg/scheduler/framework/plugins/examples/prebind"
Index ¶
- Constants
- func New(_ context.Context, _ *runtime.Unknown, _ framework.Handle) (framework.Plugin, error)
- type StatelessPreBindExample
Constants ¶
const Name = "stateless-prebind-plugin-example"
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 StatelessPreBindExample ¶
type StatelessPreBindExample struct{}
StatelessPreBindExample is an example of a simple plugin that has no state and implements only one hook for prebind.
func (StatelessPreBindExample) Name ¶
func (sr StatelessPreBindExample) Name() string
Name returns name of the plugin. It is used in logs, etc.
func (StatelessPreBindExample) PreBind ¶
func (sr StatelessPreBindExample) 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.
Source Files ¶
prebind.go
- Version
- v1.33.0 (latest)
- Published
- Apr 23, 2025
- Platform
- linux/amd64
- Imports
- 4 packages
- Last checked
- 3 hours ago –
Tools for package owners.