clusteraffinity

package
v0.9.5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 1, 2024 License: MIT Imports: 12 Imported by: 0

Documentation

Overview

Package clusteraffinity features a scheduler plugin that enforces cluster affinity (if any) defined on a CRP.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Option

type Option func(*clusterAffinityPluginOptions)

func WithName

func WithName(name string) Option

WithName sets the name of the plugin.

type Plugin

type Plugin struct {
	// contains filtered or unexported fields
}

Plugin is the scheduler plugin that enforces the cluster affinity (if any) defined on a CRP.

func New

func New(opts ...Option) Plugin

New returns a new Plugin.

func (*Plugin) Filter

Filter allows the plugin to connect to the Filter extension point in the scheduling framework.

func (*Plugin) Name

func (p *Plugin) Name() string

Name returns the name of the plugin.

func (*Plugin) PreFilter

PreFilter allows the plugin to connect to the PreFilter extension point in the scheduling framework.

func (*Plugin) PreScore

PreScore allows the plugin to connect to the PreScore extension point in the scheduling framework.

func (*Plugin) Score

Score allows the plugin to connect to the Score extension point in the scheduling framework.

func (*Plugin) SetUpWithFramework

func (p *Plugin) SetUpWithFramework(handle framework.Handle)

SetUpWithFramework sets up this plugin with a scheduler framework.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL