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 ¶
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.
type ContainerConfig ¶ added in v0.64.0
ContainerConfig defines AffinityAssistant container configuration
Click to show internal directories.
Click to hide internal directories.