scheduling

package
v0.101.0 Latest Latest
Warning

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

Go to latest
Published: May 23, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EvaluateSelector

func EvaluateSelector(selector *v1alpha1.Selector, deployment *v1alpha1.LandscaperDeployment) (bool, error)

func EvaluateSelectorList

func EvaluateSelectorList(selectors []v1alpha1.Selector, deployment *v1alpha1.LandscaperDeployment) (bool, error)

func FindServiceTargetConfig

func FindServiceTargetConfig(
	scheduling *lssv1alpha1.TargetScheduling,
	deployment *lssv1alpha1.LandscaperDeployment,
	serviceTargetConfigs []lssv1alpha1.ServiceTargetConfig) (*lssv1alpha1.ServiceTargetConfig, error)

func PickServiceTargetConfig

func PickServiceTargetConfig(configs []*lssv1alpha1.ServiceTargetConfig) (*lssv1alpha1.ServiceTargetConfig, error)

PickServiceTargetConfig selects one of the ServiceTargetConfigs, considering their priority and usage. For each ServiceTargetConfig, its priority is divided by the number of already deployed LandscaperDeployments + 1. The ServiceTargetConfigs are sorted descending by these numbers. The ServiceTargetConfig with the highest number is returned, i.e. the first in the sorted list.

func SortServiceTargetConfigs

func SortServiceTargetConfigs(configs []*lssv1alpha1.ServiceTargetConfig)

SortServiceTargetConfigs sorts the ServiceTargetConfigs by priority and usage.

Types

This section is empty.

Jump to

Keyboard shortcuts

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