dataflow

package
v1.0.3 Latest Latest
Warning

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

Go to latest
Published: Oct 17, 2024 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// DataflowAffinity Enable affinity inheritance for dataflow operations.
	DataflowAffinity featuregate.Feature = "DataflowAffinity"
)

Variables

This section is empty.

Functions

func Enabled

func Enabled(f featuregate.Feature) bool

Enabled is helper for `utilfeature.DefaultFeatureGate.Enabled()`

func GenerateNodeAffinity

func GenerateNodeAffinity(job *batchv1.Job) (*corev1.NodeAffinity, error)

func InjectAffinityAnnotation added in v1.0.2

func InjectAffinityAnnotation(opAnnotation map[string]string, podAnnotation map[string]string) map[string]string

InjectAffinityAnnotation inject the affinity annotation for the pod.

func InjectAffinityByRunAfterOp

func InjectAffinityByRunAfterOp(c client.Client, runAfter *datav1alpha1.OperationRef, opNamespace string, currentAffinity *v1.Affinity) (*v1.Affinity, error)

InjectAffinityByRunAfterOp inject the affinity based on preceding operation

Types

This section is empty.

Jump to

Keyboard shortcuts

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