From 027f71de4575ed9efdc1d1b2857dedef7531b71c Mon Sep 17 00:00:00 2001 From: Alex Goodman Date: Fri, 3 Jul 2020 12:00:46 -0400 Subject: [PATCH] fix env config reads for nested config values --- internal/config/config.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/config/config.go b/internal/config/config.go index 5493b2852..abb10ebeb 100644 --- a/internal/config/config.go +++ b/internal/config/config.go @@ -121,7 +121,7 @@ func readConfig(v *viper.Viper, configPath string) error { v.SetEnvPrefix(internal.ApplicationName) // allow for nested options to be specified via environment variables // e.g. pod.context = APPNAME_POD_CONTEXT - v.SetEnvKeyReplacer(strings.NewReplacer(".", "_")) + v.SetEnvKeyReplacer(strings.NewReplacer(".", "_", "-", "_")) // use explicitly the given user config if configPath != "" {