mirror of
https://github.com/helm/helm.git
synced 2026-05-28 04:35:48 -04:00
HELM_REGISTRY_CONFIG: change default file of registry config to config.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: https://github.com/helm/helm/issues/10156 Related: https://github.com/helm/helm/issues/10122 Signed-off-by: Allen Bai <abai@redhat.com>
This commit is contained in:
parent
46aa53ad22
commit
e08a9270be
2 changed files with 2 additions and 2 deletions
|
|
@ -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"
|
||||
|
|
|
|||
|
|
@ -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")),
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue