|
|
|
@ -135,6 +135,19 @@ func (r *Resolver) Resolve(reqs []*chart.Dependency, repoNames map[string]string
|
|
|
|
|
found = false
|
|
|
|
|
} else {
|
|
|
|
|
version = d.Version
|
|
|
|
|
|
|
|
|
|
// Check to see if an explicit version has been provided
|
|
|
|
|
_, err := semver.NewVersion(version)
|
|
|
|
|
|
|
|
|
|
// Use an explicit version, otherwise search for tags
|
|
|
|
|
if err == nil {
|
|
|
|
|
vs = []*repo.ChartVersion{{
|
|
|
|
|
Metadata: &chart.Metadata{
|
|
|
|
|
Version: version,
|
|
|
|
|
},
|
|
|
|
|
}}
|
|
|
|
|
|
|
|
|
|
} else {
|
|
|
|
|
// Retrieve list of tags for repository
|
|
|
|
|
ref := fmt.Sprintf("%s/%s", strings.TrimPrefix(d.Repository, fmt.Sprintf("%s://", registry.OCIScheme)), d.Name)
|
|
|
|
|
tags, err := r.registryClient.Tags(ref)
|
|
|
|
@ -153,6 +166,7 @@ func (r *Resolver) Resolve(reqs []*chart.Dependency, repoNames map[string]string
|
|
|
|
|
vs[ti] = version
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
locked[i] = &chart.Dependency{
|
|
|
|
|
Name: d.Name,
|
|
|
|
|