Skip to content

Commit 16d400a

Browse files
authored
Support reading in registries-config via env (#1199)
Fixes #1198
1 parent 72726ef commit 16d400a

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

cmd/util/config/config.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ func InitViperWithConfigFile(cfgViper *viper.Viper, configFile string) error {
4242
// viper for the general config (file, env and non pre-processed flags)
4343
cfgViper.SetEnvPrefix("K3D")
4444
cfgViper.AutomaticEnv()
45+
cfgViper.SetEnvKeyReplacer(strings.NewReplacer(".", "_"))
4546

4647
cfgViper.SetConfigType("yaml")
4748

0 commit comments

Comments
 (0)