affinityassistant

package
v0.59.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	AffinityAssistantDisabled                    = AffinityAssistantBehavior("AffinityAssistantDisabled")
	AffinityAssistantPerWorkspace                = AffinityAssistantBehavior("AffinityAssistantPerWorkspace")
	AffinityAssistantPerPipelineRun              = AffinityAssistantBehavior("AffinityAssistantPerPipelineRun")
	AffinityAssistantPerPipelineRunWithIsolation = AffinityAssistantBehavior("AffinityAssistantPerPipelineRunWithIsolation")
)

Variables

This section is empty.

Functions

func NewTransformer

func NewTransformer(_ context.Context, annotations map[string]string) pod.Transformer

NewTransformer returns a pod.Transformer that will pod affinity if needed

Types

type AffinityAssistantBehavior added in v0.50.0

type AffinityAssistantBehavior string

func GetAffinityAssistantBehavior added in v0.50.0

func GetAffinityAssistantBehavior(ctx context.Context) (AffinityAssistantBehavior, error)

GetAffinityAssistantBehavior returns an AffinityAssistantBehavior based on the combination of "disable-affinity-assistant" and "coschedule" feature flags TODO(#6740)(WIP): consume this function in the PipelineRun reconciler to determine Affinity Assistant behavior.

Jump to

Keyboard shortcuts

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