utils

package
v0.0.0-...-4e26876 Latest Latest
Warning

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

Go to latest
Published: Nov 27, 2023 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	EmptyRecommendatation = []corev1.ObjectReference{
		zeroObjectReference,
	}
)

Functions

func EqualDecisions

func EqualDecisions(src, dst []corev1.ObjectReference) bool

func EqualRecommendations

func EqualRecommendations(src, dst []corev1alpha1.ScoredObjectReference) bool

func GenKey

func GenKey(or corev1.ObjectReference) string

func GetAdvisor

func GetAdvisor(instance *corev1alpha1.PlacementRule, advisorName string) *corev1alpha1.Advisor

func IsSameRecommendation

func IsSameRecommendation(instance *corev1alpha1.PlacementRule, advisorName string, rec []corev1alpha1.ScoredObjectReference) bool

func MakeRecommendation

func MakeRecommendation(instance *corev1alpha1.PlacementRule, advisorName string, rec []corev1alpha1.ScoredObjectReference)
func Recommended(instance *corev1alpha1.PlacementRule, advisorName string) bool

Types

This section is empty.

Jump to

Keyboard shortcuts

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