K8s: Reduce folder get calls in modes 0-2 (#102831)

This commit is contained in:
Stephanie Hingtgen
2025-03-26 05:44:10 +02:00
committed by GitHub
parent 9e10a7f9ce
commit 0ce28c8dd8
6 changed files with 134 additions and 8 deletions
@@ -58,6 +58,7 @@ func (ss *FolderUnifiedStoreImpl) UnstructuredToLegacyFolder(ctx context.Context
if updater.UID == "" {
updater = creator
}
manager, _ := meta.GetManagerProperties()
return &folder.Folder{
UID: uid,
@@ -68,12 +69,14 @@ func (ss *FolderUnifiedStoreImpl) UnstructuredToLegacyFolder(ctx context.Context
Version: int(meta.GetGeneration()),
ManagedBy: manager.Kind,
URL: url,
Created: created,
Updated: *updated,
OrgID: info.OrgID,
CreatedBy: creator.ID,
UpdatedBy: updater.ID,
Fullpath: meta.GetFullpath(),
FullpathUIDs: meta.GetFullpathUIDs(),
URL: url,
Created: created,
Updated: *updated,
OrgID: info.OrgID,
CreatedBy: creator.ID,
UpdatedBy: updater.ID,
}, nil
}