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 <[email protected]>
  • Loading branch information
sseago committed Aug 9, 2024
1 parent 1228b41 commit e16ef18
Show file tree
Hide file tree
Showing 12 changed files with 1,397 additions and 186 deletions.
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
254 changes: 223 additions & 31 deletions pkg/backup/backup.go

Large diffs are not rendered by default.

Loading

0 comments on commit e16ef18

Please sign in to comment.