Call Update of snapshotter plugin
Signed-off-by: Maksym Pavlenko <makpav@amazon.com>
This commit is contained in:
parent
f7761411b8
commit
98ead46d1a
@ -213,6 +213,15 @@ func (s *snapshotter) Update(ctx context.Context, info snapshots.Info, fieldpath
|
|||||||
bkey = string(sbkt.Get(bucketKeyName))
|
bkey = string(sbkt.Get(bucketKeyName))
|
||||||
local.Parent = string(sbkt.Get(bucketKeyParent))
|
local.Parent = string(sbkt.Get(bucketKeyParent))
|
||||||
|
|
||||||
|
inner := snapshots.Info{
|
||||||
|
Name: bkey,
|
||||||
|
Labels: filterInheritedLabels(local.Labels),
|
||||||
|
}
|
||||||
|
|
||||||
|
if _, err := s.Snapshotter.Update(ctx, inner, fieldpaths...); err != nil {
|
||||||
|
return err
|
||||||
|
}
|
||||||
|
|
||||||
return nil
|
return nil
|
||||||
}); err != nil {
|
}); err != nil {
|
||||||
return snapshots.Info{}, err
|
return snapshots.Info{}, err
|
||||||
|
Loading…
Reference in New Issue
Block a user