performance fix for images

Signed-off-by: Adam Martin <adam.martin@rancherfederal.com>
This commit is contained in:
Adam Martin
2023-12-04 11:00:08 -05:00
parent aa16575c6f
commit b0a37d21af
2 changed files with 2 additions and 2 deletions

View File

@@ -98,8 +98,6 @@ func storeImage(ctx context.Context, s *store.Layout, i v1alpha1.Image) error {
}
err = cosign.SaveImage(ctx, s, r.Name())
// sync with local index
s.CopyAll(ctx, s.OCI, nil)
if err != nil {
return err
}

View File

@@ -160,6 +160,8 @@ func processContent(ctx context.Context, fi *os.File, o *SyncOpts, s *store.Layo
return err
}
}
// sync with local index
s.CopyAll(ctx, s.OCI, nil)
case v1alpha1.ChartsContentKind:
var cfg v1alpha1.Charts