Skip to content

Commit 88f3434

Browse files
kennySDingcheyang
andauthored
This PR is to add comments to transformTolerations in pkg/ddc/alluxio/transform_resources.go. (#4523)
* Add Notation to transformTolerations in pkg/ddc/alluxio/transform_resources.go. Signed-off-by: kennySDing <1726669303@qq.com> * Gofmt pkg/ddc/alluxio/transform_resources.go Signed-off-by: cheyang <cheyang@163.com> --------- Signed-off-by: kennySDing <1726669303@qq.com> Signed-off-by: cheyang <cheyang@163.com> Co-authored-by: cheyang <cheyang@163.com>
1 parent 4941630 commit 88f3434

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

pkg/ddc/alluxio/transform_resources.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -193,6 +193,10 @@ func (e *AlluxioEngine) transformResourcesForFuse(runtime *datav1alpha1.AlluxioR
193193

194194
}
195195

196+
// transformTolerations updates the Alluxio configuration with tolerations specified in the dataset.
197+
// It iterates over each toleration in dataset.Spec.Tolerations, clears the TolerationSeconds field,
198+
// and appends the modified toleration to value.Tolerations. This ensures that only the necessary toleration
199+
// settings (without expiration) are transferred to the Alluxio value.
196200
func (e *AlluxioEngine) transformTolerations(dataset *datav1alpha1.Dataset, value *Alluxio) {
197201
if len(dataset.Spec.Tolerations) > 0 {
198202
// value.Tolerations = dataset.Spec.Tolerations

0 commit comments

Comments
 (0)