Documentation
¶
Index ¶
- Constants
- func New(_ *runtime.Unknown, h framework.FrameworkHandle) (framework.Plugin, error)
- type InterPodAffinity
- func (pl *InterPodAffinity) AddPod(ctx context.Context, cycleState *framework.CycleState, podToSchedule *v1.Pod, ...) *framework.Status
- func (pl *InterPodAffinity) Filter(ctx context.Context, cycleState *framework.CycleState, pod *v1.Pod, ...) *framework.Status
- func (pl *InterPodAffinity) Name() string
- func (pl *InterPodAffinity) NormalizeScore(ctx context.Context, state *framework.CycleState, pod *v1.Pod, ...) *framework.Status
- func (pl *InterPodAffinity) PreFilter(ctx context.Context, cycleState *framework.CycleState, pod *v1.Pod) *framework.Status
- func (pl *InterPodAffinity) PreFilterExtensions() framework.PreFilterExtensions
- func (pl *InterPodAffinity) RemovePod(ctx context.Context, cycleState *framework.CycleState, podToSchedule *v1.Pod, ...) *framework.Status
- func (pl *InterPodAffinity) Score(ctx context.Context, state *framework.CycleState, pod *v1.Pod, nodeName string) (int64, *framework.Status)
- func (pl *InterPodAffinity) ScoreExtensions() framework.ScoreExtensions
Constants ¶
View Source
const (
// Name is the name of the plugin used in the plugin registry and configurations.
Name = "InterPodAffinity"
)
Variables ¶
This section is empty.
Functions ¶
Types ¶
type InterPodAffinity ¶
type InterPodAffinity struct {
// contains filtered or unexported fields
}
InterPodAffinity is a plugin that checks inter pod affinity
func (*InterPodAffinity) AddPod ¶ added in v1.18.0
func (pl *InterPodAffinity) AddPod(ctx context.Context, cycleState *framework.CycleState, podToSchedule *v1.Pod, podToAdd *v1.Pod, nodeInfo *nodeinfo.NodeInfo) *framework.Status
AddPod from pre-computed data in cycleState.
func (*InterPodAffinity) Filter ¶
func (pl *InterPodAffinity) Filter(ctx context.Context, cycleState *framework.CycleState, pod *v1.Pod, nodeInfo *nodeinfo.NodeInfo) *framework.Status
Filter invoked at the filter extension point.
func (*InterPodAffinity) Name ¶
func (pl *InterPodAffinity) Name() string
Name returns name of the plugin. It is used in logs, etc.
func (*InterPodAffinity) NormalizeScore ¶
func (pl *InterPodAffinity) NormalizeScore(ctx context.Context, state *framework.CycleState, pod *v1.Pod, scores framework.NodeScoreList) *framework.Status
NormalizeScore invoked after scoring all nodes.
func (*InterPodAffinity) PreFilter ¶ added in v1.18.0
func (pl *InterPodAffinity) PreFilter(ctx context.Context, cycleState *framework.CycleState, pod *v1.Pod) *framework.Status
PreFilter invoked at the prefilter extension point.
func (*InterPodAffinity) PreFilterExtensions ¶ added in v1.18.0
func (pl *InterPodAffinity) PreFilterExtensions() framework.PreFilterExtensions
PreFilterExtensions returns prefilter extensions, pod add and remove.
func (*InterPodAffinity) RemovePod ¶ added in v1.18.0
func (pl *InterPodAffinity) RemovePod(ctx context.Context, cycleState *framework.CycleState, podToSchedule *v1.Pod, podToRemove *v1.Pod, nodeInfo *nodeinfo.NodeInfo) *framework.Status
RemovePod from pre-computed data in cycleState.
func (*InterPodAffinity) Score ¶
func (pl *InterPodAffinity) Score(ctx context.Context, state *framework.CycleState, pod *v1.Pod, nodeName string) (int64, *framework.Status)
Score invoked at the Score extension point. The "score" returned in this function is the matching number of pods on the `nodeName`, it is normalized later.
func (*InterPodAffinity) ScoreExtensions ¶
func (pl *InterPodAffinity) ScoreExtensions() framework.ScoreExtensions
ScoreExtensions of the Score plugin.
Click to show internal directories.
Click to hide internal directories.