Skip to content

Commit 98ead46

Browse files
committed
Call Update of snapshotter plugin
Signed-off-by: Maksym Pavlenko <[email protected]>
1 parent f776141 commit 98ead46

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

metadata/snapshot.go

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -213,6 +213,15 @@ func (s *snapshotter) Update(ctx context.Context, info snapshots.Info, fieldpath
213213
bkey = string(sbkt.Get(bucketKeyName))
214214
local.Parent = string(sbkt.Get(bucketKeyParent))
215215

216+
inner := snapshots.Info{
217+
Name: bkey,
218+
Labels: filterInheritedLabels(local.Labels),
219+
}
220+
221+
if _, err := s.Snapshotter.Update(ctx, inner, fieldpaths...); err != nil {
222+
return err
223+
}
224+
216225
return nil
217226
}); err != nil {
218227
return snapshots.Info{}, err

0 commit comments

Comments
 (0)