Skip to content

Commit

Permalink
fix(kubepkg): kubepkg artifact should in last
Browse files Browse the repository at this point in the history
  • Loading branch information
morlay committed May 29, 2024
1 parent 9781948 commit 6b1d7ae
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions pkg/kubepkg/packer.go
Original file line number Diff line number Diff line change
Expand Up @@ -118,14 +118,6 @@ func (p *Packer) PackAsIndex(ctx context.Context, kpkg *kubepkgv1alpha1.KubePkg)
return nil, err
}

finalIndex, err = p.appendManifests(finalIndex, kubePkgImage, nil, &kubepkgv1alpha1.Image{
Name: p.ImageName(r),
Tag: kpkg.Spec.Version,
})
if err != nil {
return nil, err
}

layers, err := kubePkgImage.Layers()
if err != nil {
return nil, err
Expand Down Expand Up @@ -195,6 +187,14 @@ func (p *Packer) PackAsIndex(ctx context.Context, kpkg *kubepkgv1alpha1.KubePkg)
}
}

finalIndex, err = p.appendManifests(finalIndex, kubePkgImage, nil, &kubepkgv1alpha1.Image{
Name: p.ImageName(r),
Tag: kpkg.Spec.Version,
})
if err != nil {
return nil, err
}

return finalIndex, nil
}

Expand Down

0 comments on commit 6b1d7ae

Please sign in to comment.