Support reading in registries-config via env (#1199)

Fixes https://github.com/k3d-io/k3d/issues/1198
pull/1203/head
Sunil Shivanand 1 year ago committed by GitHub
parent 72726ef608
commit 16d400aa05
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 1
      cmd/util/config/config.go

@ -42,6 +42,7 @@ func InitViperWithConfigFile(cfgViper *viper.Viper, configFile string) error {
// viper for the general config (file, env and non pre-processed flags)
cfgViper.SetEnvPrefix("K3D")
cfgViper.AutomaticEnv()
cfgViper.SetEnvKeyReplacer(strings.NewReplacer(".", "_"))
cfgViper.SetConfigType("yaml")

Loading…
Cancel
Save