v1alpha1

package
v1.10.0 Latest Latest
Warning

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

Go to latest
Published: May 14, 2020 License: Apache-2.0 Imports: 12 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AntiAffinityLabel

func AntiAffinityLabel(lbl string) buildOption

AntiAffinityLabel adds anti affinity label as a policy to be used during pool selection

func CapacityAwareProvisioning

func CapacityAwareProvisioning(values ...string) buildOption

CapacityAwareProvisioning adds scheduleWithOverProvisioningAwareness as a policy to be used during pool selection.

func ExecutionMode

func ExecutionMode(m executionMode) buildOption

ExecutionMode sets the execution mode against the provided selection instance

func Filter

func Filter(entries *csp.CSPList, opts ...buildOption) (*csp.CSPList, error)

Filter will filter the provided pools based on pool selection policies

func FilterPoolIDs

func FilterPoolIDs(entries *csp.CSPList, opts []buildOption) ([]string, error)

FilterPoolIDs will filter the provided pools based on pool selection policies

func GetPolicies

func GetPolicies(values ...string) []buildOption

GetPolicies returns the appropriate selection policies based on the provided values

func PreferAntiAffinityLabel

func PreferAntiAffinityLabel(lbl string) buildOption

PreferAntiAffinityLabel adds anti affinity label as a preferred policy to be used during pool selection

func PreferScheduleOnHostAnnotation

func PreferScheduleOnHostAnnotation(hostNameAnnotation string) buildOption

PreferScheduleOnHostAnnotation adds preferScheduleOnHost as a policy to be used during pool selection

func TemplateFunctions

func TemplateFunctions() template.FuncMap

TemplateFunctions exposes a few functions as go template functions

Types

This section is empty.

Jump to

Keyboard shortcuts

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