Skip to content

Commit 19085b7

Browse files
Add comments to convertToTieredstoreInfo in pkg/ddc/base/runtime.go.
Signed-off-by: 郑永祺 <yongqizheng992@gmail.com>
1 parent 94f3b6c commit 19085b7

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
@@ -455,6 +455,9 @@ func (info *RuntimeInfo) SetAPIReader(apiReader client.Reader) {
455455
info.apiReader = apiReader
456456
}
457457

458+
// convertToTieredstoreInfo converts a TieredStore specification into RuntimeInfo's
459+
// internal TieredStoreInfo representation, normalizing cache paths and quota
460+
// settings for each tier.
458461
func convertToTieredstoreInfo(tieredstore datav1alpha1.TieredStore) (TieredStoreInfo, error) {
459462
if len(tieredstore.Levels) == 0 {
460463
return TieredStoreInfo{}, nil

0 commit comments

Comments
 (0)