diff --git a/pkg/ddc/base/runtime_conventions.go b/pkg/ddc/base/runtime_conventions.go index 7b8d1546221..4af28fadd5a 100644 --- a/pkg/ddc/base/runtime_conventions.go +++ b/pkg/ddc/base/runtime_conventions.go @@ -4,6 +4,15 @@ import ( "github.com/fluid-cloudnative/fluid/pkg/common" ) +// GetWorkerStatefulsetName returns the worker StatefulSet name for the runtime. +// This function determines the name of the worker StatefulSet based on the runtime type. +// Jindo-related runtimes use the "-jindofs-worker" suffix, while other runtimes use the "-worker" suffix. +// +// Parameters: +// - None: This function does not take any parameters. +// +// Returns: +// - string: The generated worker StatefulSet name for the current runtime. func (info *RuntimeInfo) GetWorkerStatefulsetName() string { switch info.runtimeType { // JindoRuntime has a extra "-jindofs" suffix in worker statefulset name.