From 356e459c8ff697e2f2da06b61c77132e5f8efbcb Mon Sep 17 00:00:00 2001 From: kennySDing <1726669303@qq.com> Date: Tue, 4 Mar 2025 20:02:43 +0800 Subject: [PATCH 1/2] Add Notation to transformTolerations in pkg/ddc/alluxio/transform_resources.go. Signed-off-by: kennySDing <1726669303@qq.com> --- pkg/ddc/alluxio/transform_resources.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/pkg/ddc/alluxio/transform_resources.go b/pkg/ddc/alluxio/transform_resources.go index 22f6462bf79..b11d6116800 100644 --- a/pkg/ddc/alluxio/transform_resources.go +++ b/pkg/ddc/alluxio/transform_resources.go @@ -181,7 +181,10 @@ func (e *AlluxioEngine) transformResourcesForFuse(runtime *datav1alpha1.AlluxioR } } - +// transformTolerations updates the Alluxio configuration with tolerations specified in the dataset. +// It iterates over each toleration in dataset.Spec.Tolerations, clears the TolerationSeconds field, +// and appends the modified toleration to value.Tolerations. This ensures that only the necessary toleration +// settings (without expiration) are transferred to the Alluxio value. func (e *AlluxioEngine) transformTolerations(dataset *datav1alpha1.Dataset, value *Alluxio) { if len(dataset.Spec.Tolerations) > 0 { // value.Tolerations = dataset.Spec.Tolerations From d6833b0e9d0095feafbad2810f06f25dc90782d6 Mon Sep 17 00:00:00 2001 From: cheyang Date: Thu, 13 Mar 2025 10:33:10 +0800 Subject: [PATCH 2/2] Gofmt pkg/ddc/alluxio/transform_resources.go Signed-off-by: cheyang --- pkg/ddc/alluxio/transform_resources.go | 1 + 1 file changed, 1 insertion(+) diff --git a/pkg/ddc/alluxio/transform_resources.go b/pkg/ddc/alluxio/transform_resources.go index b11d6116800..f69cc585a9b 100644 --- a/pkg/ddc/alluxio/transform_resources.go +++ b/pkg/ddc/alluxio/transform_resources.go @@ -181,6 +181,7 @@ func (e *AlluxioEngine) transformResourcesForFuse(runtime *datav1alpha1.AlluxioR } } + // transformTolerations updates the Alluxio configuration with tolerations specified in the dataset. // It iterates over each toleration in dataset.Spec.Tolerations, clears the TolerationSeconds field, // and appends the modified toleration to value.Tolerations. This ensures that only the necessary toleration