Skip to content

Commit 87bd0b3

Browse files
committed
Add Notation to TestGetCacheInfoFromConfigmap in pkg\ddc\juicefs\datasetinfo_parser_test.go
Signed-off-by: 1501634824 <1501634824@qq.com>
1 parent 8a89517 commit 87bd0b3

1 file changed

Lines changed: 12 additions & 0 deletions

File tree

pkg/ddc/juicefs/datasetinfo_parser_test.go

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,18 @@ import (
2828
"github.com/fluid-cloudnative/fluid/pkg/utils/fake"
2929
)
3030

31+
// UpdateDatasetStatus updates the status of a dataset in the JindoEngine.
32+
// This function performs a two-step update process:
33+
// 1. Updates the underlying runtime status to reflect current state
34+
// 2. Updates the dataset's phase and conditions based on the runtime status
35+
//
36+
// Parameters:
37+
// - phase (datavalalpha1.DatasetPhase): The target phase to transition the dataset to
38+
// (e.g., Bound, NotBound, Failed, Pending)
39+
//
40+
// Returns:
41+
// - error: Returns nil if update succeeds, otherwise returns the encountered error
42+
// including conflicts during update retries or failures to get runtime/dataset
3143
func TestGetCacheInfoFromConfigmap(t *testing.T) {
3244
configMap := &v1.ConfigMap{
3345
ObjectMeta: metav1.ObjectMeta{

0 commit comments

Comments
 (0)