|
|
@ -18,6 +18,7 @@ package resolver
|
|
|
|
import (
|
|
|
|
import (
|
|
|
|
"bytes"
|
|
|
|
"bytes"
|
|
|
|
"encoding/json"
|
|
|
|
"encoding/json"
|
|
|
|
|
|
|
|
"fmt"
|
|
|
|
"os"
|
|
|
|
"os"
|
|
|
|
"path/filepath"
|
|
|
|
"path/filepath"
|
|
|
|
"strings"
|
|
|
|
"strings"
|
|
|
@ -144,7 +145,8 @@ func (r *Resolver) Resolve(reqs []*chart.Dependency, repoNames map[string]string
|
|
|
|
|
|
|
|
|
|
|
|
// Retrieve list of tags for repository
|
|
|
|
// Retrieve list of tags for repository
|
|
|
|
ref := fmt.Sprintf("%s/%s", strings.TrimPrefix(d.Repository, fmt.Sprintf("%s://", registry.OCIScheme)), d.Name)
|
|
|
|
ref := fmt.Sprintf("%s/%s", strings.TrimPrefix(d.Repository, fmt.Sprintf("%s://", registry.OCIScheme)), d.Name)
|
|
|
|
tags, err := r.registryClient.Tags(ref) if err != nil {
|
|
|
|
tags, err := r.registryClient.Tags(ref)
|
|
|
|
|
|
|
|
if err != nil {
|
|
|
|
return nil, errors.Wrapf(err, "could not retrieve list of tags for repository %s", d.Repository)
|
|
|
|
return nil, errors.Wrapf(err, "could not retrieve list of tags for repository %s", d.Repository)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|