Skip to content

Commit

Permalink
Update push.go
Browse files Browse the repository at this point in the history
Signed-off-by: Maxim Vasilenko <5184586+mvasl@users.noreply.github.com>
  • Loading branch information
mvasl authored Feb 7, 2025
1 parent 44a120a commit 34c0914
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions pkg/libmirror/layouts/push.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,6 @@ import (
"github.com/deckhouse/deckhouse-cli/pkg/libmirror/util/retry/task"
)

var ErrEmptyLayout = errors.New("No images in layout")

func PushLayoutToRepo(
imagesLayout layout.Path,
registryRepo string,
Expand Down Expand Up @@ -85,7 +83,7 @@ func PushLayoutToRepoContext(
}

if len(indexManifest.Manifests) == 0 {
return fmt.Errorf("%s: %w", registryRepo, ErrEmptyLayout)
return nil
}

batches := lo.Chunk(indexManifest.Manifests, parallelismConfig.Images)
Expand Down

0 comments on commit 34c0914

Please sign in to comment.