Skip to content

Commit

Permalink
HELM_REGISTRY_CONFIG: change default file of registry config to confi…
Browse files Browse the repository at this point in the history
…g.json

Changes default registry config file from `registry.json` to
`config.json`. This aligns with the `config.json` that is widely used in docker.

Closes: #10156
Related: #10122
Signed-off-by: Allen Bai <abai@redhat.com>
  • Loading branch information
Allen Bai committed Jan 11, 2022
1 parent 46aa53a commit e08a927
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/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 = "registry.json"
CredentialsFileBasename = "registry/config.json"

// ConfigMediaType is the reserved media type for the Helm chart manifest config
ConfigMediaType = "application/vnd.cncf.helm.config.v1+json"
Expand Down
2 changes: 1 addition & 1 deletion pkg/cli/environment.go
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ func New() *EnvSettings {
KubeAPIServer: os.Getenv("HELM_KUBEAPISERVER"),
KubeCaFile: os.Getenv("HELM_KUBECAFILE"),
PluginsDirectory: envOr("HELM_PLUGINS", helmpath.DataPath("plugins")),
RegistryConfig: envOr("HELM_REGISTRY_CONFIG", helmpath.ConfigPath("registry.json")),
RegistryConfig: envOr("HELM_REGISTRY_CONFIG", helmpath.ConfigPath("registry/config.json")),
RepositoryConfig: envOr("HELM_REPOSITORY_CONFIG", helmpath.ConfigPath("repositories.yaml")),
RepositoryCache: envOr("HELM_REPOSITORY_CACHE", helmpath.CachePath("repository")),
}
Expand Down

0 comments on commit e08a927

Please sign in to comment.