Skip to content

Commit

Permalink
Fix default registry config path of oci protocol provider
Browse files Browse the repository at this point in the history
Signed-off-by: Kai Takac <kai.takac@gmail.com>
(cherry picked from commit 52cbc2f)
  • Loading branch information
Ka0o0 authored and Matthew Fisher committed Oct 12, 2021
1 parent eeac838 commit 57ecc25
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion internal/experimental/registry/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion internal/experimental/registry/constants.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 57ecc25

Please sign in to comment.