Documentation ¶
Index ¶
- func EvaluateSelector(selector *v1alpha1.Selector, deployment *v1alpha1.LandscaperDeployment) (bool, error)
- func EvaluateSelectorList(selectors []v1alpha1.Selector, deployment *v1alpha1.LandscaperDeployment) (bool, error)
- func FindServiceTargetConfig(scheduling *lssv1alpha1.TargetScheduling, ...) (*lssv1alpha1.ServiceTargetConfig, error)
- func PickServiceTargetConfig(configs []*lssv1alpha1.ServiceTargetConfig) (*lssv1alpha1.ServiceTargetConfig, error)
- func SortServiceTargetConfigs(configs []*lssv1alpha1.ServiceTargetConfig)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func EvaluateSelector ¶
func EvaluateSelectorList ¶
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.
Click to show internal directories.
Click to hide internal directories.