Skip to content

Update runtime_info_test.go #5144

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
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
10 changes: 10 additions & 0 deletions pkg/ddc/alluxio/runtime_info_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,16 @@ import (
"sigs.k8s.io/controller-runtime/pkg/client"
)

// newAlluxioEngineRT 创建一个新的 AlluxioEngine 实例。
// 参数:
// - client: Kubernetes 客户端接口,用于与集群资源交互。
// - name: AlluxioRuntime 的名称。
// - namespace: AlluxioRuntime 所在的命名空间。
// - withRuntimeInfo: 是否构建并包含 runtimeInfo。
// - unittest: 是否启用单元测试模式(影响 logger 和行为)。
// 返回值:
// - *AlluxioEngine: 一个初始化完成的 AlluxioEngine 指针对象。

func newAlluxioEngineRT(client client.Client, name string, namespace string, withRuntimeInfo bool, unittest bool) *AlluxioEngine {
runTimeInfo, _ := base.BuildRuntimeInfo(name, namespace, common.AlluxioRuntime)
engine := &AlluxioEngine{
Expand Down