Documentation
¶
Overview ¶
Package v1alpha1 is the v1alpha1 version of the API. +groupName=data.fluid.io
Package v1alpha1 contains API Schema definitions for the data v1alpha1 API group +kubebuilder:object:generate=true +groupName=data.fluid.io
Index ¶
- Constants
- Variables
- type AlluxioCompTemplateSpec
- type AlluxioDataLoad
- type AlluxioDataLoadList
- type AlluxioDataLoadSpec
- type AlluxioDataLoadStatus
- type AlluxioFuseSpec
- type AlluxioRuntime
- type AlluxioRuntimeList
- type AlluxioRuntimeRole
- type AlluxioRuntimeSpec
- type AlluxioRuntimeStatus
- type AlluxioVersionSpec
- type CacheableNodeAffinity
- type Data
- type DataloadCondition
- type Dataset
- type DatasetCondition
- type DatasetConditionType
- type DatasetList
- type DatasetPhase
- type DatasetSpec
- type DatasetStatus
- type Level
- type Mount
- type Runtime
- type RuntimeCondition
- type RuntimeConditionType
- type RuntimePhase
- type Tieredstore
Constants ¶
const ( RuntimeMasterInitializedReason = "Master is initialized" // MasterReady means the master of runtime is ready RuntimeMasterReadyReason = "Master is ready" // WorkersInitialized means the Workers of runtime is initialized RuntimeWorkersInitializedReason = "Workers are initialized" // WorkersReady means the Workers of runtime is ready RuntimeWorkersReadyReason = "Workers are ready" // WorkersInitialized means the Workers of runtime is initialized RuntimeFusesInitializedReason = "Fuses are initialized" // WorkersReady means the Workers of runtime is ready RuntimeFusesReadyReason = "Fuses are ready" )
const ( // The cache system are ready DatasetReadyReason = "DatasetReady" // Resynced means updating with the underlayer filesystem. DatasetDataSetFailedReason = "DatasetFailed" )
Variables ¶
var ( // GroupVersion is group version used to register these objects GroupVersion = schema.GroupVersion{Group: "data.fluid.io", Version: "v1alpha1"} // SchemeBuilder is used to add go types to the GroupVersionKind scheme SchemeBuilder = &scheme.Builder{GroupVersion: GroupVersion} // AddToScheme adds the types in this group-version to the given scheme. AddToScheme = SchemeBuilder.AddToScheme )
Functions ¶
This section is empty.
Types ¶
type AlluxioCompTemplateSpec ¶
type AlluxioCompTemplateSpec struct { // Replicas is the desired number of replicas of the given template. // If unspecified, defaults to 1. // +kubebuilder:validation:Minimum=1 // replicas is the min replicas of dataset in the cluster // +optional Replicas int32 `json:"replicas,omitempty"` // Options for JVM JvmOptions []string `json:"jvmOptions,omitempty"` // Configurable properties for the Alluxio component. <br> // Refer to <a href="https://docs.alluxio.io/os/user/stable/en/reference/Properties-List.html">Alluxio Configuration Properties</a> for more info // +optional Properties map[string]string `json:"properties,omitempty"` // Ports used by Alluxio(e.g. rpc: 19998 for master) // +optional Ports map[string]int `json:"ports,omitempty"` // Resources that will be requested by the Alluxio component. <br> // <br> // Resources are not allowed for ephemeral containers. Ephemeral containers use spare resources // already allocated to the pod. // +optional Resources corev1.ResourceRequirements `json:"resources,omitempty"` // Environment variables that will be used by Alluxio component. <br> Env map[string]string `json:"env,omitempty"` }
AlluxioCompTemplateSpec is a description of the Alluxio commponents
func (*AlluxioCompTemplateSpec) DeepCopy ¶
func (in *AlluxioCompTemplateSpec) DeepCopy() *AlluxioCompTemplateSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AlluxioCompTemplateSpec.
func (*AlluxioCompTemplateSpec) DeepCopyInto ¶
func (in *AlluxioCompTemplateSpec) DeepCopyInto(out *AlluxioCompTemplateSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type AlluxioDataLoad ¶
type AlluxioDataLoad struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec AlluxioDataLoadSpec `json:"spec,omitempty"` Status AlluxioDataLoadStatus `json:"status,omitempty"` }
AlluxioDataLoad is the Schema for the alluxiodataloads API
func (*AlluxioDataLoad) DeepCopy ¶
func (in *AlluxioDataLoad) DeepCopy() *AlluxioDataLoad
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AlluxioDataLoad.
func (*AlluxioDataLoad) DeepCopyInto ¶
func (in *AlluxioDataLoad) DeepCopyInto(out *AlluxioDataLoad)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*AlluxioDataLoad) DeepCopyObject ¶
func (in *AlluxioDataLoad) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type AlluxioDataLoadList ¶
type AlluxioDataLoadList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []AlluxioDataLoad `json:"items"` }
AlluxioDataLoadList contains a list of AlluxioDataLoad
func (*AlluxioDataLoadList) DeepCopy ¶
func (in *AlluxioDataLoadList) DeepCopy() *AlluxioDataLoadList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AlluxioDataLoadList.
func (*AlluxioDataLoadList) DeepCopyInto ¶
func (in *AlluxioDataLoadList) DeepCopyInto(out *AlluxioDataLoadList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*AlluxioDataLoadList) DeepCopyObject ¶
func (in *AlluxioDataLoadList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type AlluxioDataLoadSpec ¶
type AlluxioDataLoadSpec struct { // Name of the dataset that will be prefetched // +kubebuilder:validation:MinLength=1 // +required DatasetName string `json:"datasetName"` // Mount path of the dataset in Alluxio. Defaults to /{datasetName} if not specified. (e.g. /my-dataset/cifar10) // +optional Path string `json:"path,omitempty"` // Specifies the number of slots per worker used in hostfile. // Defaults to 2. // +optional SlotsPerNode *int32 `json:"slotsPerNode,omitempty"` }
AlluxioDataLoadSpec defines the desired state of AlluxioDataLoad
func (*AlluxioDataLoadSpec) DeepCopy ¶
func (in *AlluxioDataLoadSpec) DeepCopy() *AlluxioDataLoadSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AlluxioDataLoadSpec.
func (*AlluxioDataLoadSpec) DeepCopyInto ¶
func (in *AlluxioDataLoadSpec) DeepCopyInto(out *AlluxioDataLoadSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type AlluxioDataLoadStatus ¶
type AlluxioDataLoadStatus struct { // The latest available observation of a dataload's running phase. // One of the four phases: `Pending`, `Loading`, `Complete` and `Failed` Phase common.DataloadPhase `json:"phase"` // The latest available observations of an object's current state. // +optional Conditions []DataloadCondition `json:"conditions"` }
AlluxioDataLoadStatus defines the observed state of AlluxioDataLoad
func (*AlluxioDataLoadStatus) DeepCopy ¶
func (in *AlluxioDataLoadStatus) DeepCopy() *AlluxioDataLoadStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AlluxioDataLoadStatus.
func (*AlluxioDataLoadStatus) DeepCopyInto ¶
func (in *AlluxioDataLoadStatus) DeepCopyInto(out *AlluxioDataLoadStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type AlluxioFuseSpec ¶
type AlluxioFuseSpec struct { // Image for Alluxio Fuse(e.g. alluxio/alluxio-fuse) Image string `json:"image,omitempty"` // Image Tag for Alluxio Fuse(e.g. 2.3.0-SNAPSHOT) ImageTag string `json:"imageTag,omitempty"` // One of the three policies: `Always`, `IfNotPresent`, `Never` ImagePullPolicy string `json:"imagePullPolicy,omitempty"` // Options for JVM JvmOptions []string `json:"jvmOptions,omitempty"` // Configurable properties for Alluxio System. <br> // Refer to <a href="https://docs.alluxio.io/os/user/stable/en/reference/Properties-List.html">Alluxio Configuration Properties</a> for more info Properties map[string]string `json:"properties,omitempty"` // Environment variables that will be used by Alluxio Fuse Env map[string]string `json:"env,omitempty"` // Resources that will be requested by Alluxio Fuse. <br> // <br> // Resources are not allowed for ephemeral containers. Ephemeral containers use spare resources // already allocated to the pod. // +optional Resources corev1.ResourceRequirements `json:"resources,omitempty"` // Arguments that will be passed to Alluxio Fuse Args []string `json:"args,omitempty"` }
AlluxioFuseSpec is a description of the Alluxio Fuse
func (*AlluxioFuseSpec) DeepCopy ¶
func (in *AlluxioFuseSpec) DeepCopy() *AlluxioFuseSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AlluxioFuseSpec.
func (*AlluxioFuseSpec) DeepCopyInto ¶
func (in *AlluxioFuseSpec) DeepCopyInto(out *AlluxioFuseSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type AlluxioRuntime ¶
type AlluxioRuntime struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec AlluxioRuntimeSpec `json:"spec,omitempty"` Status AlluxioRuntimeStatus `json:"status,omitempty"` }
AlluxioRuntime is the Schema for the alluxioruntimes API
func (*AlluxioRuntime) DeepCopy ¶
func (in *AlluxioRuntime) DeepCopy() *AlluxioRuntime
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AlluxioRuntime.
func (*AlluxioRuntime) DeepCopyInto ¶
func (in *AlluxioRuntime) DeepCopyInto(out *AlluxioRuntime)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*AlluxioRuntime) DeepCopyObject ¶
func (in *AlluxioRuntime) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*AlluxioRuntime) Replicas ¶
func (runtime *AlluxioRuntime) Replicas() int32
Replicas gets the replicas of runtime worker
type AlluxioRuntimeList ¶
type AlluxioRuntimeList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []AlluxioRuntime `json:"items"` }
AlluxioRuntimeList contains a list of AlluxioRuntime
func (*AlluxioRuntimeList) DeepCopy ¶
func (in *AlluxioRuntimeList) DeepCopy() *AlluxioRuntimeList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AlluxioRuntimeList.
func (*AlluxioRuntimeList) DeepCopyInto ¶
func (in *AlluxioRuntimeList) DeepCopyInto(out *AlluxioRuntimeList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*AlluxioRuntimeList) DeepCopyObject ¶
func (in *AlluxioRuntimeList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type AlluxioRuntimeRole ¶
type AlluxioRuntimeRole common.RuntimeRole
const ( // Master is the type for master of Alluxio cluster. Master AlluxioRuntimeRole = "master" // Worker is the type for workers of Alluxio cluster. Worker AlluxioRuntimeRole = "worker" // Fuse is the type for chief worker of Alluxio cluster. Fuse AlluxioRuntimeRole = "fuse" )
type AlluxioRuntimeSpec ¶
type AlluxioRuntimeSpec struct { // The version information that instructs fluid to orchestrate a particular version of Alluxio. AlluxioVersion AlluxioVersionSpec `json:"alluxioVersion,omitempty"` // Desired state for Alluxio master Master AlluxioCompTemplateSpec `json:"master,omitempty"` // Desired state for Alluxio job master JobMaster AlluxioCompTemplateSpec `json:"jobMaster,omitempty"` // Desired state for Alluxio worker Worker AlluxioCompTemplateSpec `json:"worker,omitempty"` // Desired state for Alluxio job Worker JobWorker AlluxioCompTemplateSpec `json:"jobWorker,omitempty"` // Desired state for Alluxio Fuse Fuse AlluxioFuseSpec `json:"fuse,omitempty"` // Configurable properties for Alluxio system. <br> // Refer to <a href="https://docs.alluxio.io/os/user/stable/en/reference/Properties-List.html">Alluxio Configuration Properties</a> for more info Properties map[string]string `json:"properties,omitempty"` // Options for JVM JvmOptions []string `json:"jvmOptions,omitempty"` // Tiered storage used by Alluxio Tieredstore Tieredstore `json:"tieredstore,omitempty"` //Management strategies for the dataset to which the runtime is bound Data Data `json:"data,omitempty"` // The replicas of the worker, need to be specified Replicas int32 `json:"replicas,omitempty"` }
AlluxioRuntimeSpec defines the desired state of AlluxioRuntime
func (*AlluxioRuntimeSpec) DeepCopy ¶
func (in *AlluxioRuntimeSpec) DeepCopy() *AlluxioRuntimeSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AlluxioRuntimeSpec.
func (*AlluxioRuntimeSpec) DeepCopyInto ¶
func (in *AlluxioRuntimeSpec) DeepCopyInto(out *AlluxioRuntimeSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type AlluxioRuntimeStatus ¶
type AlluxioRuntimeStatus struct { // config map used to set configurations ValueFileConfigmap string `json:"valueFile"` // MasterPhase is the master running phase MasterPhase RuntimePhase `json:"masterPhase"` // Reason for Alluxio Master's condition transition MasterReason string `json:"masterReason,omitempty"` // WorkerPhase is the worker running phase WorkerPhase RuntimePhase `json:"workerPhase"` // Reason for Alluxio Worker's condition transition WorkerReason string `json:"workerReason,omitempty"` // The total number of nodes that should be running the runtime worker // pod (including nodes correctly running the runtime worker pod). DesiredWorkerNumberScheduled int32 `json:"desiredWorkerNumberScheduled"` // The total number of nodes that can be running the runtime worker // pod (including nodes correctly running the runtime worker pod). CurrentWorkerNumberScheduled int32 `json:"currentWorkerNumberScheduled"` // The number of nodes that should be running the runtime worker pod and have one // or more of the runtime worker pod running and ready. WorkerNumberReady int32 `json:"workerNumberReady"` // The number of nodes that should be running the // runtime worker pod and have one or more of the runtime worker pod running and // available (ready for at least spec.minReadySeconds) // +optional WorkerNumberAvailable int32 `json:"workerNumberAvailable,omitempty"` // runtime worker pod and have none of the runtime worker pod running and available // (ready for at least spec.minReadySeconds) // +optional WorkerNumberUnavailable int32 `json:"workerNumberUnavailable,omitempty"` // The total number of nodes that should be running the runtime // pod (including nodes correctly running the runtime master pod). DesiredMasterNumberScheduled int32 `json:"desiredMasterNumberScheduled"` // The total number of nodes that should be running the runtime // pod (including nodes correctly running the runtime master pod). CurrentMasterNumberScheduled int32 `json:"currentMasterNumberScheduled"` // The number of nodes that should be running the runtime worker pod and have zero // or more of the runtime master pod running and ready. MasterNumberReady int32 `json:"masterNumberReady"` // FusePhase is the Fuse running phase FusePhase RuntimePhase `json:"fusePhase"` // Reason for the condition's last transition. FuseReason string `json:"fuseReason,omitempty"` // The total number of nodes that can be running the runtime Fuse // pod (including nodes correctly running the runtime Fuse pod). CurrentFuseNumberScheduled int32 `json:"currentFuseNumberScheduled"` // The total number of nodes that should be running the runtime Fuse // pod (including nodes correctly running the runtime Fuse pod). DesiredFuseNumberScheduled int32 `json:"desiredFuseNumberScheduled"` // The number of nodes that should be running the runtime Fuse pod and have one // or more of the runtime Fuse pod running and ready. FuseNumberReady int32 `json:"fuseNumberReady"` // runtime fuse pod and have none of the runtime fuse pod running and available // (ready for at least spec.minReadySeconds) // +optional FuseNumberUnavailable int32 `json:"fuseNumberUnavailable,omitempty"` // The number of nodes that should be running the // runtime Fuse pod and have one or more of the runtime Fuse pod running and // available (ready for at least spec.minReadySeconds) // +optional FuseNumberAvailable int32 `json:"fuseNumberAvailable,omitempty"` // Represents the latest available observations of a ddc runtime's current state. // +patchMergeKey=type // +patchStrategy=merge Conditions []RuntimeCondition `json:"conditions,omitempty" patchStrategy:"merge" patchMergeKey:"type"` // CacheStatus represents the total resources of the dataset. CacheStates common.CacheStateList `json:"cacheStates,omitempty"` }
AlluxioRuntimeStatus defines the observed state of AlluxioRuntime
func (*AlluxioRuntimeStatus) DeepCopy ¶
func (in *AlluxioRuntimeStatus) DeepCopy() *AlluxioRuntimeStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AlluxioRuntimeStatus.
func (*AlluxioRuntimeStatus) DeepCopyInto ¶
func (in *AlluxioRuntimeStatus) DeepCopyInto(out *AlluxioRuntimeStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type AlluxioVersionSpec ¶
type AlluxioVersionSpec struct { // Image for Alluxio(e.g. alluxio/alluxio) Image string `json:"image,omitempty"` // Image tag for Alluxio(e.g. 2.3.0-SNAPSHOT) ImageTag string `json:"imageTag,omitempty"` // One of the three policies: `Always`, `IfNotPresent`, `Never` ImagePullPolicy string `json:"imagePullPolicy,omitempty"` }
VersionSpec represents the settings for the Alluxio version that fluid is orchestrating.
func (*AlluxioVersionSpec) DeepCopy ¶
func (in *AlluxioVersionSpec) DeepCopy() *AlluxioVersionSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AlluxioVersionSpec.
func (*AlluxioVersionSpec) DeepCopyInto ¶
func (in *AlluxioVersionSpec) DeepCopyInto(out *AlluxioVersionSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type CacheableNodeAffinity ¶
type CacheableNodeAffinity struct { // Required specifies hard node constraints that must be met. Required *v1.NodeSelector `json:"required,omitempty"` }
CacheableNodeAffinity defines constraints that limit what nodes this dataset can be cached to.
func (*CacheableNodeAffinity) DeepCopy ¶
func (in *CacheableNodeAffinity) DeepCopy() *CacheableNodeAffinity
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CacheableNodeAffinity.
func (*CacheableNodeAffinity) DeepCopyInto ¶
func (in *CacheableNodeAffinity) DeepCopyInto(out *CacheableNodeAffinity)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type Data ¶
type Data struct { // The copies of the dataset // +optional Replicas int32 `json:"replicas"` // Pin the dataset or not. Refer to <a href="https://docs.alluxio.io/os/user/stable/en/operation/User-CLI.html#pin">Alluxio User-CLI pin</a> // +optional Pin bool `json:"pin"` }
Data management strategies
func (*Data) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Data.
func (*Data) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type DataloadCondition ¶
type DataloadCondition struct { // Type of Dataload condition, Complete or Failed. Type common.DataloadConditionType `json:"type"` // Status of the condition, one of True, False, Unknown. Status v1.ConditionStatus `json:"status"` // The reason for the condition's last transition. Reason string `json:"reason,omitempty"` // A human readable message indicating details about the transition. Message string `json:"message,omitempty"` // The last time this condition was updated. LastProbeTime metav1.Time `json:"lastProbeTime,omitempty"` // Last time the condition transitioned from one status to another. LastTransitionTime metav1.Time `json:"lastTransitionTime,omitempty"` }
DataloadCondition describes current state of a Dataload.
func (*DataloadCondition) DeepCopy ¶
func (in *DataloadCondition) DeepCopy() *DataloadCondition
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DataloadCondition.
func (*DataloadCondition) DeepCopyInto ¶
func (in *DataloadCondition) DeepCopyInto(out *DataloadCondition)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type Dataset ¶
type Dataset struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec DatasetSpec `json:"spec,omitempty"` Status DatasetStatus `json:"status,omitempty"` }
Dataset is the Schema for the datasets API
func (*Dataset) CanbeBound ¶
func (dataset *Dataset) CanbeBound(name string, namespace string, category common.Category) (bound bool)
Canbeound checks if the dataset can be bound to the runtime
func (*Dataset) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Dataset.
func (*Dataset) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*Dataset) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type DatasetCondition ¶
type DatasetCondition struct { // Type of cache condition. Type DatasetConditionType `json:"type"` // Status of the condition, one of True, False, Unknown. Status v1.ConditionStatus `json:"status"` // The reason for the condition's last transition. Reason string `json:"reason,omitempty"` // A human readable message indicating details about the transition. Message string `json:"message,omitempty"` // The last time this condition was updated. LastUpdateTime metav1.Time `json:"lastUpdateTime,omitempty"` // Last time the condition transitioned from one status to another. LastTransitionTime metav1.Time `json:"lastTransitionTime,omitempty"` }
Condition describes the state of the cache at a certain point.
func (*DatasetCondition) DeepCopy ¶
func (in *DatasetCondition) DeepCopy() *DatasetCondition
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DatasetCondition.
func (*DatasetCondition) DeepCopyInto ¶
func (in *DatasetCondition) DeepCopyInto(out *DatasetCondition)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type DatasetConditionType ¶
type DatasetConditionType string
DatasetConditionType defines all kinds of types of cacheStatus.<br> one of the three types: `RuntimeScheduled`, `Ready` and `Initialized`
const ( // RuntimeScheduled means the runtime CRD has been accepted by the system, // But master and workers are not ready RuntimeScheduled DatasetConditionType = "RuntimeScheduled" // DatasetReady means the cache system for the dataset is ready. DatasetReady DatasetConditionType = "Ready" // DatasetInitialized means the cache system for the dataset is Initialized. DatasetInitialized DatasetConditionType = "Initialized" )
type DatasetList ¶
type DatasetList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []Dataset `json:"items"` }
DatasetList contains a list of Dataset
func (*DatasetList) DeepCopy ¶
func (in *DatasetList) DeepCopy() *DatasetList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DatasetList.
func (*DatasetList) DeepCopyInto ¶
func (in *DatasetList) DeepCopyInto(out *DatasetList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*DatasetList) DeepCopyObject ¶
func (in *DatasetList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type DatasetPhase ¶
type DatasetPhase string
The dataset phase indicates whether the loading is behaving
const ( // bounding to runtime, can't be deleted PendingDatasetPhase DatasetPhase = "Pending" // Bound to dataset, can't be released BoundDatasetPhase DatasetPhase = "Bound" // Failed, can't be deleted FailedDatasetPhase DatasetPhase = "Failed" // Not bound to runtime, can be deleted NotBoundDatasetPhase DatasetPhase = "NotBound" NoneDatasetPhase DatasetPhase = "" )
type DatasetSpec ¶
type DatasetSpec struct { // Mount Points to be mounted on Alluxio. // +kubebuilder:validation:MinItems=1 // +kubebuilder:validation:UniqueItems=false // +required Mounts []Mount `json:"mounts,omitempty"` // NodeAffinity defines constraints that limit what nodes this dataset can be cached to. // This field influences the scheduling of pods that use the cached dataset. // +optional NodeAffinity *CacheableNodeAffinity `json:"nodeAffinity,omitempty"` // Runtimes for supporting dataset (e.g. AlluxioRuntime) Runtimes []Runtime `json:"runtimes,omitempty"` }
DatasetSpec defines the desired state of Dataset
func (*DatasetSpec) DeepCopy ¶
func (in *DatasetSpec) DeepCopy() *DatasetSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DatasetSpec.
func (*DatasetSpec) DeepCopyInto ¶
func (in *DatasetSpec) DeepCopyInto(out *DatasetSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type DatasetStatus ¶
type DatasetStatus struct { // Total in GB of dataset in the cluster UfsTotal string `json:"ufsTotal,omitempty"` // Dataset Phase. One of the four phases: `Pending`, `Bound`, `NotBound` and `Failed` Phase DatasetPhase `json:"phase,omitempty"` // Runtimes for supporting dataset Runtimes []Runtime `json:"runtimes,omitempty"` // Conditions is an array of current observed conditions. Conditions []DatasetCondition `json:"conditions"` // CacheStatus represents the total resources of the dataset. CacheStates common.CacheStateList `json:"cacheStates,omitempty"` }
DatasetStatus defines the observed state of Dataset +kubebuilder:subresource:status
func (*DatasetStatus) DeepCopy ¶
func (in *DatasetStatus) DeepCopy() *DatasetStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DatasetStatus.
func (*DatasetStatus) DeepCopyInto ¶
func (in *DatasetStatus) DeepCopyInto(out *DatasetStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type Level ¶
type Level struct { // Medium Type of the tier. One of the three types: `MEM`, `SSD`, `HDD` // +kubebuilder:validation:Enum=MEM;SSD;HDD // +required MediumType common.MediumType `json:"mediumtype"` // File path to be used for the tier (e.g. /mnt/ramdisk) // +kubebuilder:validation:MinLength=1 // +required Path string `json:"path,omitempty"` // Quota for the tier. (e.g. 100GB) // +required Quota *resource.Quantity `json:"quota,omitempty"` // Ratio of high watermark of the tier (e.g. 0.9) High string `json:"high,omitempty"` // Ratio of low watermark of the tier (e.g. 0.7) Low string `json:"low,omitempty"` }
Level describes configurations a tier needs. <br> Refer to <a href="https://docs.alluxio.io/os/user/stable/en/core-services/Caching.html#configuring-tiered-storage">Configuring Tiered Storage</a> for more info
func (*Level) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Level.
func (*Level) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type Mount ¶
type Mount struct { // MountPoint is the mount point of source. // +kubebuilder:validation:MinLength=10 // +required MountPoint string `json:"mountPoint,omitempty"` // The Mount Options. <br> // Refer to <a href="https://docs.alluxio.io/os/user/stable/en/reference/Properties-List.html">Mount Options</a>. <br> // The option has Prefix 'fs.' And you can Learn more from // <a href="https://docs.alluxio.io/os/user/stable/en/ufs/S3.html">The Storage Integrations</a> // +optional Options map[string]string `json:"options,omitempty"` // The name of mount // +kubebuilder:validation:MinLength=0 // +required Name string `json:"name,omitempty"` // The path of mount, if not set will be /{Name} // +optional Path string `json:"path,omitempty"` // Optional: Defaults to false (read-write). // +optional ReadOnly bool `json:"readOnly,omitempty"` // +optional Shared bool `json:"shared,omitempty"` }
Mount describes a mounting. <br> Refer to <a href="https://docs.alluxio.io/os/user/stable/en/ufs/S3.html">Alluxio Storage Integrations</a> for more info
func (*Mount) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Mount.
func (*Mount) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type Runtime ¶
type Runtime struct { // Name of the runtime object Name string `json:"name,omitempty"` // Namespace of the runtime object Namespace string `json:"namespace,omitempty"` // Category the runtime object belongs to (e.g. Accelerate) Category common.Category `json:"category,omitempty"` // Runtime object's type (e.g. Alluxio) Type string `json:"type,omitempty"` }
Runtime describes a runtime to be used to support dataset
func (*Runtime) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Runtime.
func (*Runtime) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type RuntimeCondition ¶
type RuntimeCondition struct { // Type of cache condition. Type RuntimeConditionType `json:"type"` // Status of the condition, one of True, False, Unknown. Status corev1.ConditionStatus `json:"status"` // The reason for the condition's last transition. Reason string `json:"reason,omitempty"` // A human readable message indicating details about the transition. Message string `json:"message,omitempty"` // The last time this condition was updated. LastProbeTime metav1.Time `json:"lastProbeTime,omitempty"` // Last time the condition transitioned from one status to another. LastTransitionTime metav1.Time `json:"lastTransitionTime,omitempty"` }
Condition describes the state of the cache at a certain point.
func (*RuntimeCondition) DeepCopy ¶
func (in *RuntimeCondition) DeepCopy() *RuntimeCondition
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RuntimeCondition.
func (*RuntimeCondition) DeepCopyInto ¶
func (in *RuntimeCondition) DeepCopyInto(out *RuntimeCondition)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type RuntimeConditionType ¶
type RuntimeConditionType string
RuntimeConditionType indicates valid conditions type of a runtime
const ( // MasterInitialized means the master of runtime is initialized RuntimeMasterInitialized RuntimeConditionType = "MasterInitialized" // MasterReady means the master of runtime is ready RuntimeMasterReady RuntimeConditionType = "MasterReady" // WorkersInitialized means the Workers of runtime is initialized RuntimeWorkersInitialized RuntimeConditionType = "WorkersInitialized" // WorkersReady means the Workers of runtime is ready RuntimeWorkersReady RuntimeConditionType = "WorkersReady" // FusesInitialized means the fuses of runtime is initialized RuntimeFusesInitialized RuntimeConditionType = "FusesInitialized" // FusesReady means the fuses of runtime is ready RuntimeFusesReady RuntimeConditionType = "FusesReady" )
These are valid conditions of a runtime.
type RuntimePhase ¶
type RuntimePhase string
const ( RuntimePhaseNone RuntimePhase = "" RuntimePhaseNotReady RuntimePhase = "NotReady" RuntimePhasePartialReady RuntimePhase = "PartialReady" RuntimePhaseReady RuntimePhase = "Ready" )
type Tieredstore ¶
type Tieredstore struct { // configurations for multiple tiers Levels []Level `json:"levels,omitempty"` }
Tieredstore is a description of the tiered store
func (*Tieredstore) DeepCopy ¶
func (in *Tieredstore) DeepCopy() *Tieredstore
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Tieredstore.
func (*Tieredstore) DeepCopyInto ¶
func (in *Tieredstore) DeepCopyInto(out *Tieredstore)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.