From 1d5db04f42e2acb6c45519709a4aff7b589e4660 Mon Sep 17 00:00:00 2001 From: JerryMLJ <13721512405@163.com> Date: Mon, 25 May 2026 20:43:34 +0800 Subject: [PATCH 1/3] Add Notion to GetTieredStoreInfo in pkg\ddc\base\runtime.go. Signed-off-by: JerryMLJ <13721512405@163.com> Signed-off-by: JerryMLJ <166619157+JerryMLJ@users.noreply.github.com> --- pkg/ddc/base/runtime.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/pkg/ddc/base/runtime.go b/pkg/ddc/base/runtime.go index 2704606a728..43500197158 100644 --- a/pkg/ddc/base/runtime.go +++ b/pkg/ddc/base/runtime.go @@ -311,7 +311,10 @@ func WithTieredStore(tieredStore datav1alpha1.TieredStore) RuntimeInfoOption { return nil } } - +// GetTieredStoreInfo gets TieredStoreInfo from RuntimeInfo, the TieredStoreInfo is converted from datav1alpha1.TieredStore and stored in RuntimeInfo when building RuntimeInfo, so it can be used directly without conversion when getting it from RuntimeInfo. +// The conversion logic is in WithTieredStore function. +// If the length of Levels in datav1alpha1.TieredStore is 0, the Levels in TieredStoreInfo will also be an empty slice. +// The TieredStoreInfo contains more structured information about the tiered store, such as the quota for each cache path, which is more convenient to use than the original datav1alpha1.TieredStore. func (info *RuntimeInfo) GetTieredStoreInfo() TieredStoreInfo { return info.tieredstoreInfo } From e8c747031e8f05b21a99d38f00cbed6c8863912c Mon Sep 17 00:00:00 2001 From: JerryMLJ <13721512405@163.com> Date: Mon, 25 May 2026 21:18:25 +0800 Subject: [PATCH 2/3] Add Notion to GetTieredStoreInfo in pkg\ddc\base\runtime.go. Signed-off-by: JerryMLJ <13721512405@163.com> Signed-off-by: JerryMLJ <166619157+JerryMLJ@users.noreply.github.com> --- pkg/ddc/base/runtime.go | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/pkg/ddc/base/runtime.go b/pkg/ddc/base/runtime.go index 43500197158..e9852aab8d1 100644 --- a/pkg/ddc/base/runtime.go +++ b/pkg/ddc/base/runtime.go @@ -311,10 +311,9 @@ func WithTieredStore(tieredStore datav1alpha1.TieredStore) RuntimeInfoOption { return nil } } -// GetTieredStoreInfo gets TieredStoreInfo from RuntimeInfo, the TieredStoreInfo is converted from datav1alpha1.TieredStore and stored in RuntimeInfo when building RuntimeInfo, so it can be used directly without conversion when getting it from RuntimeInfo. -// The conversion logic is in WithTieredStore function. -// If the length of Levels in datav1alpha1.TieredStore is 0, the Levels in TieredStoreInfo will also be an empty slice. -// The TieredStoreInfo contains more structured information about the tiered store, such as the quota for each cache path, which is more convenient to use than the original datav1alpha1.TieredStore. +// GetTieredStoreInfo returns the TieredStoreInfo associated with the RuntimeInfo. +// The info is pre-converted from datav1alpha1.TieredStore for convenience (e.g., structured quotas). +// If no levels are defined, the Levels slice in the returned struct will be nil. func (info *RuntimeInfo) GetTieredStoreInfo() TieredStoreInfo { return info.tieredstoreInfo } From c16257a75a09e9a380ee67692d06942ef11ee2bc Mon Sep 17 00:00:00 2001 From: JerryMLJ <166619157+JerryMLJ@users.noreply.github.com> Date: Sat, 20 Jun 2026 11:38:04 +0000 Subject: [PATCH 3/3] Add Notation to GetTieredStoreInfo in pkg/ddc/base/runtime.go. Signed-off-by: JerryMLJ <166619157+JerryMLJ@users.noreply.github.com> --- pkg/ddc/base/runtime.go | 1 + 1 file changed, 1 insertion(+) diff --git a/pkg/ddc/base/runtime.go b/pkg/ddc/base/runtime.go index e9852aab8d1..87a624f76ec 100644 --- a/pkg/ddc/base/runtime.go +++ b/pkg/ddc/base/runtime.go @@ -311,6 +311,7 @@ func WithTieredStore(tieredStore datav1alpha1.TieredStore) RuntimeInfoOption { return nil } } + // GetTieredStoreInfo returns the TieredStoreInfo associated with the RuntimeInfo. // The info is pre-converted from datav1alpha1.TieredStore for convenience (e.g., structured quotas). // If no levels are defined, the Levels slice in the returned struct will be nil.