support OCI registries as well

Signed-off-by: Luke Reed <luke@lreed.net>
pull/10369/head
Luke Reed 4 years ago
parent 09f48bfa9d
commit 2be3ebf3e5
No known key found for this signature in database
GPG Key ID: 96AC6BBD6D32F691

@ -160,6 +160,10 @@ func (c *ChartDownloader) ResolveChartVersion(ref, version string) (*url.URL, er
return nil, errors.Errorf("invalid chart URL format: %s", ref) return nil, errors.Errorf("invalid chart URL format: %s", ref)
} }
if u.Scheme == "oci" {
c.RepositoryURL = ref
}
rf, err := loadRepoConfig(c.RepositoryConfig) rf, err := loadRepoConfig(c.RepositoryConfig)
if err != nil { if err != nil {
return u, err return u, err

Loading…
Cancel
Save