refactor: rename deploy/k8s to deploy/kubernetes; add SetEnvKeyReplacer for env var support in K8s
This commit is contained in:
1 parent
d581441fa8
commit
bbf06204cc
15 files changed
+226
-44
No files matched your search
@@ -7,6 +7,7 @@ import (
|
||||
"net/http"
|
||||
"os"
|
||||
"os/signal"
|
||||
"strings"
|
||||
"syscall"
|
||||
"time"
|
||||
|
||||
@@ -245,6 +246,7 @@ func loadConfig() *config.Config {
|
||||
}
|
||||
|
||||
// 环境变量覆盖 // Logan.Li
|
||||
viper.SetEnvKeyReplacer(strings.NewReplacer(".", "_"))
|
||||
viper.AutomaticEnv()
|
||||
|
||||
// CLI flags 覆盖(最高优先级)// Logan.Li
|
||||
|
||||
Reference in new issue
Block a user