affinityassistant

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

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

Go to latest
Published: Nov 28, 2023 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

type AffinityAssistantBehavior string

func GetAffinityAssistantBehavior

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