helper

package
v0.0.0-...-dcfb068 Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DefaultNormalizeScore

func DefaultNormalizeScore(maxPriority int64, reverse bool, scores framework.NodeScoreList) *framework.Status

DefaultNormalizeScore generates a Normalize Score function that can normalize the scores to [0, maxPriority]. If reverse is set to true, it reverses the scores by subtracting it from maxPriority.

func DefaultSelector

DefaultSelector returns a selector deduced from the Services, Replication Controllers, Replica Sets, and Stateful Sets matching the given pod.

func GetPodServices

func GetPodServices(sl corelisters.ServiceLister, pod *v1.Pod) ([]*v1.Service, error)

GetPodServices gets the services that have the selector that match the labels on the given pod.

Types

This section is empty.

Jump to

Keyboard shortcuts

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