Skip to content
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
4 changes: 4 additions & 0 deletions pkg/ddc/alluxio/load_data.go
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,10 @@ func (e *AlluxioEngine) generateDataLoadValueFile(r cruntime.ReconcileRequestCon
return valueFile.Name(), nil
}

// genDataLoadValue builds a DataLoadValue for the Fluid dataloader Helm chart from the Alluxio worker
// image, the target Dataset, and the DataLoad CR. It fills scheduling options (affinity including
// run-after injection, nodeSelector, tolerations, schedulerName), resolves target paths with
// Fluid-native mount detection, and attaches owner references for the rendered load Job.
Comment on lines +103 to +106
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

The description of scheduling options is grammatically ambiguous. The current phrasing suggests that nodeSelector, tolerations, and schedulerName are examples of affinity (due to the "including" clause), whereas they are actually distinct fields in the DataLoadValue struct. Clarifying this improves the documentation's accuracy.

Suggested change
// genDataLoadValue builds a DataLoadValue for the Fluid dataloader Helm chart from the Alluxio worker
// image, the target Dataset, and the DataLoad CR. It fills scheduling options (affinity including
// run-after injection, nodeSelector, tolerations, schedulerName), resolves target paths with
// Fluid-native mount detection, and attaches owner references for the rendered load Job.
// genDataLoadValue builds a DataLoadValue for the Fluid dataloader Helm chart from the Alluxio worker
// image, the target Dataset, and the DataLoad CR. It fills scheduling options (affinity, nodeSelector,
// tolerations, schedulerName), handles run-after affinity injection, resolves target paths with
// Fluid-native mount detection, and attaches owner references for the rendered load Job.

func (e *AlluxioEngine) genDataLoadValue(image string, targetDataset *datav1alpha1.Dataset, dataload *datav1alpha1.DataLoad) (*cdataload.DataLoadValue, error) {
// image pull secrets
// if the environment variable is not set, it is still an empty slice
Expand Down
Loading