Merge pull request #10211 from Ka0o0/fix-registry-config-path

Fix default registry config path of oci protocol provider
pull/10224/head
Matthew Fisher 4 years ago committed by GitHub
commit d09d556e71
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -62,7 +62,7 @@ func NewClient(options ...ClientOption) (*Client, error) {
option(client)
}
if client.credentialsFile == "" {
client.credentialsFile = helmpath.CachePath("registry", CredentialsFileBasename)
client.credentialsFile = helmpath.ConfigPath(CredentialsFileBasename)
}
if client.authorizer == nil {
authClient, err := dockerauth.NewClient(client.credentialsFile)

@ -21,7 +21,7 @@ const (
OCIScheme = "oci"
// CredentialsFileBasename is the filename for auth credentials file
CredentialsFileBasename = "config.json"
CredentialsFileBasename = "registry.json"
// ConfigMediaType is the reserved media type for the Helm chart manifest config
ConfigMediaType = "application/vnd.cncf.helm.config.v1+json"

Loading…
Cancel
Save