Fix default registry config path of oci protocol provider

Signed-off-by: Kai Takac <kai.takac@gmail.com>
(cherry picked from commit 52cbc2f49c)
release-3.7
Kai Takac 4 years ago committed by Matthew Fisher
parent eeac83883c
commit 57ecc256a0
No known key found for this signature in database
GPG Key ID: 92AA783CBAAE8E3B

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