Skip to content

This PR is to add comments to newJindoEngineREP in pkg/ddc/jindo/replicas_test.go. #5014

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
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
Binary file added pkg/ddc/jindo/.replicas_test.go.swd
Binary file not shown.
Binary file added pkg/ddc/jindo/.replicas_test.go.swe
Binary file not shown.
Binary file added pkg/ddc/jindo/.replicas_test.go.swf
Binary file not shown.
Binary file added pkg/ddc/jindo/.replicas_test.go.swg
Binary file not shown.
Binary file added pkg/ddc/jindo/.replicas_test.go.swh
Binary file not shown.
Binary file added pkg/ddc/jindo/.replicas_test.go.swi
Binary file not shown.
Binary file added pkg/ddc/jindo/.replicas_test.go.swj
Binary file not shown.
Binary file added pkg/ddc/jindo/.replicas_test.go.swk
Binary file not shown.
Binary file added pkg/ddc/jindo/.replicas_test.go.swl
Binary file not shown.
Binary file added pkg/ddc/jindo/.replicas_test.go.swm
Binary file not shown.
Binary file added pkg/ddc/jindo/.replicas_test.go.swn
Binary file not shown.
11 changes: 10 additions & 1 deletion pkg/ddc/jindo/replicas_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,16 @@ import (
"k8s.io/utils/ptr"
"sigs.k8s.io/controller-runtime/pkg/client"
)

// newJindoEngineREP creates and initializes a new JindoEngine instance.
// It sets up the runtime information, logger, and helper utility.
//
// Parameters:
// - client: the Kubernetes client used for interacting with the cluster
// - name: the name of the JindoRuntime
// - namespace: the Kubernetes namespace where the runtime is deployed
//
// Returns:
// - A pointer to the initialized JindoEngine instance
func newJindoEngineREP(client client.Client, name string, namespace string) *JindoEngine {

runTimeInfo, _ := base.BuildRuntimeInfo(name, namespace, common.JindoRuntime)
Expand Down