Skip to content
This repository has been archived by the owner on Aug 12, 2024. It is now read-only.

Commit

Permalink
catalog --> bundle
Browse files Browse the repository at this point in the history
Signed-off-by: everettraven <everettraven@gmail.com>
  • Loading branch information
everettraven committed May 7, 2024
1 parent 400ac20 commit 190f296
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/source/image_registry.go
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ func (i *ImageRegistry) Unpack(ctx context.Context, bundle *rukpakv1alpha2.Bundl

unpackPath := filepath.Join(i.BaseCachePath, bundle.Name, imgDesc.Digest.Hex)
if _, err = os.Stat(unpackPath); errors.Is(err, os.ErrNotExist) { //nolint: nestif
// Ensure any previous unpacked catalog is cleaned up before unpacking the new catalog.
// Ensure any previous unpacked bundle is cleaned up before unpacking the new catalog.
if err := i.Cleanup(ctx, bundle); err != nil {
return nil, fmt.Errorf("error cleaning up bundle cache: %w", err)
}
Expand Down Expand Up @@ -147,7 +147,7 @@ func unpackedResult(fsys fs.FS, bundle *rukpakv1alpha2.BundleDeployment, ref str
}
}

// unpackImage unpacks a catalog image reference to the provided unpackPath,
// unpackImage unpacks a bundle image reference to the provided unpackPath,
// returning an error if any errors are encountered along the way.
func unpackImage(ctx context.Context, imgRef name.Reference, unpackPath string, remoteOpts ...remote.Option) error {
img, err := remote.Image(imgRef, remoteOpts...)
Expand Down

0 comments on commit 190f296

Please sign in to comment.