Skip to content

Commit

Permalink
Fix http registry oci pull (#4701)
Browse files Browse the repository at this point in the history
Signed-off-by: alexey.makhonin <alexey.makhonin@flant.com>
  • Loading branch information
alex123012 authored Jun 26, 2023
1 parent 5d73b47 commit 9be0825
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion pkg/oci/artifact.go
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,12 @@ func (a *Artifact) populate(ctx context.Context, opt types.RegistryOptions) erro
a.m.Lock()
defer a.m.Unlock()

ref, err := name.ParseReference(a.repository)
var nameOpts []name.Option
if opt.Insecure {
nameOpts = append(nameOpts, name.Insecure)
}

ref, err := name.ParseReference(a.repository, nameOpts...)
if err != nil {
return xerrors.Errorf("repository name error (%s): %w", a.repository, err)
}
Expand Down

0 comments on commit 9be0825

Please sign in to comment.