Fix default registry config path of oci protocol provider

Signed-off-by: Kai Takac <kai.takac@gmail.com>
pull/10211/head
Kai Takac 4 years ago
parent 9fafb4ad68
commit 52cbc2f49c

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

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

Loading…
Cancel
Save