Skip to content

Commit

Permalink
ItemBlock model and phase 1 (single-thread) workflow changes
Browse files Browse the repository at this point in the history
Signed-off-by: Scott Seago <sseago@redhat.com>
  • Loading branch information
sseago committed Aug 13, 2024
1 parent 1228b41 commit 68cee28
Show file tree
Hide file tree
Showing 13 changed files with 1,396 additions and 186 deletions.
1 change: 1 addition & 0 deletions changelogs/unreleased/8102-sseago
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
ItemBlock model and phase 1 (single-thread) workflow changes
20 changes: 14 additions & 6 deletions design/backup-performance-improvements.md
Original file line number Diff line number Diff line change
Expand Up @@ -109,19 +109,27 @@ This mainly applies to plugins that operate on pods which reference resources wh

### Changes to processing item list from the Item Collector

#### New structs ItemBlock and ItemBlockItem
#### New structs BackupItemBlock, ItemBlock, and ItemBlockItem
```go
type ItemBlock struct {
log logrus.FieldLogger
package backup

type BackupItemBlock struct {
itemblock.ItemBlock
// This is a reference to the shared itemBackupper for the backup
itemBackupper *itemBackupper
}

package itemblock

type ItemBlock struct {
Log logrus.FieldLogger
Items []ItemBlockItem
}

type ItemBlockItem struct {
gr schema.GroupResource
item *unstructured.Unstructured
preferredGVR schema.GroupVersionResource
Gr schema.GroupResource
Item *unstructured.Unstructured
PreferredGVR schema.GroupVersionResource
}
```

Expand Down
252 changes: 221 additions & 31 deletions pkg/backup/backup.go

Large diffs are not rendered by default.

Loading

0 comments on commit 68cee28

Please sign in to comment.