dataload

package
v1.0.4 Latest Latest
Warning

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

Go to latest
Published: Dec 26, 2024 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DataLoadLockName = "DataLoad"

	DataloadFinalizer    = "fluid-dataload-controller-finalizer"
	DataloadChart        = "fluid-dataloader"
	DataloadDefaultImage = "registry.cn-hangzhou.aliyuncs.com/fluid/fluid-dataloader"
	DataloadSuffixLength = 5
	EnvDataloaderImg     = "DATALOADER_IMG"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type DataLoadInfo

type DataLoadInfo struct {
	// Policy including None, Once, Cron, OnEvent
	Policy string `json:"policy"`

	// Schedule The schedule in Cron format, only set when policy is cron, see https://en.wikipedia.org/wiki/Cron.
	Schedule string `json:"schedule,omitempty"`

	// BackoffLimit specifies the upper limit times when the DataLoad job fails
	BackoffLimit int32 `json:"backoffLimit,omitempty"`

	// TargetDataset specifies the dataset that the DataLoad targets
	TargetDataset string `json:"targetDataset,omitempty"`

	// LoadMetadata specifies if the DataLoad job should load metadata from UFS when doing data load
	LoadMetadata bool `json:"loadMetadata,omitempty"`

	// TargetPaths specifies which paths should the DataLoad load
	TargetPaths []TargetPath `json:"targetPaths,omitempty"`

	// Image specifies the image that the DataLoad job uses
	Image string `json:"image,omitempty"`

	// Options specifies the extra dataload properties for runtime
	Options map[string]string `json:"options,omitempty"`

	// Labels defines labels in DataLoad's pod metadata
	Labels map[string]string `json:"labels,omitempty"`

	// Annotations defines annotations in DataLoad's pod metadata
	Annotations map[string]string `json:"annotations,omitempty"`

	// image pull secrets
	ImagePullSecrets []corev1.LocalObjectReference `json:"imagePullSecrets,omitempty"`

	// pod affinity
	Affinity *corev1.Affinity `json:"affinity,omitempty"`

	// pod tolerations
	Tolerations []corev1.Toleration `json:"tolerations,omitempty"`

	// node selector
	NodeSelector map[string]string `json:"nodeSelector,omitempty"`

	// scheduler name
	SchedulerName string `json:"schedulerName,omitempty"`

	// Resources that will be requested by DataLoad job.
	Resources corev1.ResourceRequirements `json:"resources,omitempty"`
}

DataLoadInfo defines values used in DataLoad helm chart

type DataLoadValue

type DataLoadValue struct {
	Name         string                 `json:"name"`
	Owner        *common.OwnerReference `json:"owner,omitempty"`
	DataLoadInfo DataLoadInfo           `json:"dataloader"`
}

DataLoadValue defines the value yaml file used in DataLoad helm chart

type TargetPath added in v0.4.0

type TargetPath struct {
	// Path specifies the path should be loaded
	Path string `json:"path,omitempty"`

	// Replicas specifies how many replicas should be loaded
	Replicas int32 `json:"replicas,omitempty"`

	// FluidNative specifies if the path is a native mountPoint(e.g. hostpath or pvc)
	FluidNative bool `json:"fluidNative,omitempty"`
}

Jump to

Keyboard shortcuts

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