Fix default registry config path of oci protocol provider

Signed-off-by: Kai Takac <kai.takac@gmail.com>
This commit is contained in:
Kai Takac 2021-10-04 16:13:12 +02:00
parent 9fafb4ad68
commit 52cbc2f49c
2 changed files with 2 additions and 2 deletions

View File

@ -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)

View File

@ -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"