mirror of https://github.com/helm/helm.git
Fix default registry config path of oci protocol provider
Signed-off-by: Kai Takac <kai.takac@gmail.com>
This commit is contained in:
parent
9fafb4ad68
commit
52cbc2f49c
|
@ -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…
Reference in New Issue