Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions api/v1alpha1/alluxioruntime_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,13 @@ type AlluxioFuseSpec struct {
// +kubebuilder:validation:Enum=HostNetwork;"";ContainerNetwork
// +optional
NetworkMode NetworkMode `json:"networkMode,omitempty"`

// LaunchMode specifies the launch mode of fuse pod, Lazy/Eager, default to Lazy
// +kubebuilder:validation:Enum="";Lazy;Eager
// +kubebuilder:default:=Lazy
// +optional
LaunchMode FuseLaunchMode `json:"launchMode,omitempty"`

// VolumeMounts specifies the volumes listed in ".spec.volumes" to mount into the alluxio runtime component's filesystem.
// +optional
VolumeMounts []corev1.VolumeMount `json:"volumeMounts,omitempty"`
Expand Down
10 changes: 10 additions & 0 deletions api/v1alpha1/constant.go
Original file line number Diff line number Diff line change
Expand Up @@ -53,3 +53,13 @@ const (
// OnRuntimeDeletedCleanPolicy cleans fuse pod only when the cache runtime is deleted
OnRuntimeDeletedCleanPolicy FuseCleanPolicy = "OnRuntimeDeleted"
)

type FuseLaunchMode string

const (
// LazyMode is the default launch mode, which will launch fuse pods by the application pods
LazyMode FuseLaunchMode = "Lazy"

// EagerMode is the optional launch mode, which will launch fuse pods by deploy fuse statefulset actively
EagerMode FuseLaunchMode = "Eager"
)
6 changes: 6 additions & 0 deletions api/v1alpha1/efcruntime_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,12 @@ type EFCFuseSpec struct {
// +optional
NetworkMode NetworkMode `json:"networkMode,omitempty"`

// LaunchMode specifies the launch mode of fuse pod, Lazy/Eager, default to Lazy
// +kubebuilder:validation:Enum="";Lazy;Eager
// +kubebuilder:default:=Lazy
// +optional
LaunchMode FuseLaunchMode `json:"launchMode,omitempty"`

// PodMetadata defines labels and annotations that will be propagated to EFC's fuse pods
// +optional
PodMetadata PodMetadata `json:"podMetadata,omitempty"`
Expand Down
6 changes: 6 additions & 0 deletions api/v1alpha1/goosefsruntime_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,12 @@ type GooseFSFuseSpec struct {
// +optional
CleanPolicy FuseCleanPolicy `json:"cleanPolicy,omitempty"`

// LaunchMode specifies the launch mode of fuse pod, Lazy/Eager, default to Lazy
// +kubebuilder:validation:Enum="";Lazy;Eager
// +kubebuilder:default:=Lazy
// +optional
LaunchMode FuseLaunchMode `json:"launchMode,omitempty"`

// Annotations is an unstructured key value map stored with a resource that may be
// set by external tools to store and retrieve arbitrary metadata. They are not
// queryable and should be preserved when modifying objects.
Expand Down
6 changes: 6 additions & 0 deletions api/v1alpha1/jindoruntime_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,12 @@ type JindoFuseSpec struct {
// +optional
CleanPolicy FuseCleanPolicy `json:"cleanPolicy,omitempty"`

// LaunchMode specifies the launch mode of fuse pod, Lazy/Eager, default to Lazy
// +kubebuilder:validation:Enum="";Lazy;Eager
// +kubebuilder:default:=Lazy
// +optional
LaunchMode FuseLaunchMode `json:"launchMode,omitempty"`

// If disable JindoFS fuse
// +optional
Disabled bool `json:"disabled,omitempty"`
Expand Down
6 changes: 6 additions & 0 deletions api/v1alpha1/juicefsruntime_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -172,6 +172,12 @@ type JuiceFSFuseSpec struct {
// +kubebuilder:validation:Enum=HostNetwork;"";ContainerNetwork
// +optional
NetworkMode NetworkMode `json:"networkMode,omitempty"`

// LaunchMode specifies the launch mode of fuse pod, Lazy/Eager, default to Lazy
// +kubebuilder:validation:Enum="";Lazy;Eager
// +kubebuilder:default:=Lazy
// +optional
LaunchMode FuseLaunchMode `json:"launchMode,omitempty"`
}

//+kubebuilder:object:root=true
Expand Down
49 changes: 49 additions & 0 deletions api/v1alpha1/openapi_generated.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions api/v1alpha1/thinruntime_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -180,6 +180,12 @@ type ThinFuseSpec struct {
// +optional
NetworkMode NetworkMode `json:"networkMode,omitempty"`

// LaunchMode specifies the launch mode of fuse pod, Lazy/Eager, default to Lazy
// +kubebuilder:validation:Enum="";Lazy;Eager
// +kubebuilder:default:=Lazy
// +optional
LaunchMode FuseLaunchMode `json:"launchMode,omitempty"`

// livenessProbe of thin fuse pod
// +optional
LivenessProbe *corev1.Probe `json:"livenessProbe,omitempty"`
Expand Down
6 changes: 6 additions & 0 deletions api/v1alpha1/vineyardruntime_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -193,6 +193,12 @@ type VineyardClientSocketSpec struct {
// +optional
NetworkMode NetworkMode `json:"networkMode,omitempty"`

// LaunchMode specifies the launch mode of fuse pod, Lazy/Eager, default to Lazy
// +kubebuilder:validation:Enum="";Lazy;Eager
// +kubebuilder:default:=Lazy
// +optional
LaunchMode FuseLaunchMode `json:"launchMode,omitempty"`

// PodMetadata defines labels and annotations that will be propagated to Vineyard's pods.
// +optional
PodMetadata PodMetadata `json:"podMetadata,omitempty"`
Expand Down
9 changes: 9 additions & 0 deletions charts/fluid/fluid/crds/data.fluid.io_alluxioruntimes.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -356,6 +356,15 @@ spec:
items:
type: string
type: array
launchMode:
default: Lazy
description: LaunchMode specifies the launch mode of fuse pod,
Lazy/Eager, default to Lazy
enum:
- ""
- Lazy
- Eager
type: string
networkMode:
description: Whether to use hostnetwork or not
enum:
Expand Down
9 changes: 9 additions & 0 deletions charts/fluid/fluid/crds/data.fluid.io_efcruntimes.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,15 @@ spec:
OnRuntimeDeleted cleans fuse pod only when the cache runtime is deleted
Defaults to OnRuntimeDeleted
type: string
launchMode:
default: Lazy
description: LaunchMode specifies the launch mode of fuse pod,
Lazy/Eager, default to Lazy
enum:
- ""
- Lazy
- Eager
type: string
networkMode:
description: Whether to use hostnetwork or not
enum:
Expand Down
9 changes: 9 additions & 0 deletions charts/fluid/fluid/crds/data.fluid.io_goosefsruntimes.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -285,6 +285,15 @@ spec:
items:
type: string
type: array
launchMode:
default: Lazy
description: LaunchMode specifies the launch mode of fuse pod,
Lazy/Eager, default to Lazy
enum:
- ""
- Lazy
- Eager
type: string
nodeSelector:
additionalProperties:
type: string
Expand Down
9 changes: 9 additions & 0 deletions charts/fluid/fluid/crds/data.fluid.io_jindoruntimes.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -163,6 +163,15 @@ spec:
DEPRECATED: this is a deprecated field. Please use PodMetadata.Labels instead.
Note: this field is set to be exclusive with PodMetadata.Labels
type: object
launchMode:
default: Lazy
description: LaunchMode specifies the launch mode of fuse pod,
Lazy/Eager, default to Lazy
enum:
- ""
- Lazy
- Eager
type: string
logConfig:
additionalProperties:
type: string
Expand Down
9 changes: 9 additions & 0 deletions charts/fluid/fluid/crds/data.fluid.io_juicefsruntimes.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -239,6 +239,15 @@ spec:
imageTag:
description: Image for JuiceFS fuse
type: string
launchMode:
default: Lazy
description: LaunchMode specifies the launch mode of fuse pod,
Lazy/Eager, default to Lazy
enum:
- ""
- Lazy
- Eager
type: string
networkMode:
description: Whether to use hostnetwork or not
enum:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -205,6 +205,15 @@ spec:
imageTag:
description: Image for thinRuntime fuse
type: string
launchMode:
default: Lazy
description: LaunchMode specifies the launch mode of fuse pod,
Lazy/Eager, default to Lazy
enum:
- ""
- Lazy
- Eager
type: string
livenessProbe:
description: livenessProbe of thin fuse pod
properties:
Expand Down
9 changes: 9 additions & 0 deletions charts/fluid/fluid/crds/data.fluid.io_thinruntimes.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -206,6 +206,15 @@ spec:
imageTag:
description: Image for thinRuntime fuse
type: string
launchMode:
default: Lazy
description: LaunchMode specifies the launch mode of fuse pod,
Lazy/Eager, default to Lazy
enum:
- ""
- Lazy
- Eager
type: string
livenessProbe:
description: livenessProbe of thin fuse pod
properties:
Expand Down
9 changes: 9 additions & 0 deletions charts/fluid/fluid/crds/data.fluid.io_vineyardruntimes.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,15 @@ spec:
Image Tag for Vineyard Fuse
Default is `v0.22.2`
type: string
launchMode:
default: Lazy
description: LaunchMode specifies the launch mode of fuse pod,
Lazy/Eager, default to Lazy
enum:
- ""
- Lazy
- Eager
type: string
networkMode:
description: |-
Whether to use hostnetwork or not
Expand Down
9 changes: 9 additions & 0 deletions config/crd/bases/data.fluid.io_alluxioruntimes.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -356,6 +356,15 @@ spec:
items:
type: string
type: array
launchMode:
default: Lazy
description: LaunchMode specifies the launch mode of fuse pod,
Lazy/Eager, default to Lazy
enum:
- ""
- Lazy
- Eager
type: string
networkMode:
description: Whether to use hostnetwork or not
enum:
Expand Down
9 changes: 9 additions & 0 deletions config/crd/bases/data.fluid.io_efcruntimes.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,15 @@ spec:
OnRuntimeDeleted cleans fuse pod only when the cache runtime is deleted
Defaults to OnRuntimeDeleted
type: string
launchMode:
default: Lazy
description: LaunchMode specifies the launch mode of fuse pod,
Lazy/Eager, default to Lazy
enum:
- ""
- Lazy
- Eager
type: string
networkMode:
description: Whether to use hostnetwork or not
enum:
Expand Down
9 changes: 9 additions & 0 deletions config/crd/bases/data.fluid.io_goosefsruntimes.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -285,6 +285,15 @@ spec:
items:
type: string
type: array
launchMode:
default: Lazy
description: LaunchMode specifies the launch mode of fuse pod,
Lazy/Eager, default to Lazy
enum:
- ""
- Lazy
- Eager
type: string
nodeSelector:
additionalProperties:
type: string
Expand Down
9 changes: 9 additions & 0 deletions config/crd/bases/data.fluid.io_jindoruntimes.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -163,6 +163,15 @@ spec:
DEPRECATED: this is a deprecated field. Please use PodMetadata.Labels instead.
Note: this field is set to be exclusive with PodMetadata.Labels
type: object
launchMode:
default: Lazy
description: LaunchMode specifies the launch mode of fuse pod,
Lazy/Eager, default to Lazy
enum:
- ""
- Lazy
- Eager
type: string
logConfig:
additionalProperties:
type: string
Expand Down
Loading
Loading