Skip to content

Commit f7bdef5

Browse files
authored
docs: add comment for genDataLoadValue (#5840)
Signed-off-by: haoranxu <3460172596@qq.com>
1 parent 04e5b80 commit f7bdef5

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

pkg/ddc/alluxio/load_data.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,10 @@ func (e *AlluxioEngine) generateDataLoadValueFile(r cruntime.ReconcileRequestCon
100100
return valueFile.Name(), nil
101101
}
102102

103+
// genDataLoadValue builds a DataLoadValue for the Fluid dataloader Helm chart from the Alluxio worker
104+
// image, the target Dataset, and the DataLoad CR. It fills scheduling options (affinity including
105+
// run-after injection, nodeSelector, tolerations, schedulerName), resolves target paths with
106+
// Fluid-native mount detection, and attaches owner references for the rendered load Job.
103107
func (e *AlluxioEngine) genDataLoadValue(image string, targetDataset *datav1alpha1.Dataset, dataload *datav1alpha1.DataLoad) (*cdataload.DataLoadValue, error) {
104108
// image pull secrets
105109
// if the environment variable is not set, it is still an empty slice

0 commit comments

Comments
 (0)