Skip to content

Commit 77b1adb

Browse files
Add comments to convertToTieredstoreInfo in pkg/ddc/base/runtime.go. (#6054)
Signed-off-by: 郑永祺 <yongqizheng992@gmail.com>
1 parent 9e99841 commit 77b1adb

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

pkg/ddc/base/runtime.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -458,6 +458,9 @@ func (info *RuntimeInfo) SetAPIReader(apiReader client.Reader) {
458458
info.apiReader = apiReader
459459
}
460460

461+
// convertToTieredstoreInfo converts a TieredStore specification into RuntimeInfo's
462+
// internal TieredStoreInfo representation, normalizing cache paths and quota
463+
// settings for each tier.
461464
func convertToTieredstoreInfo(tieredstore datav1alpha1.TieredStore) (TieredStoreInfo, error) {
462465
if len(tieredstore.Levels) == 0 {
463466
return TieredStoreInfo{}, nil

0 commit comments

Comments
 (0)