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 ¶
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.
Click to show internal directories.
Click to hide internal directories.