diff --git a/cmd/root.go b/cmd/root.go index 055e0c79703f2780e0fa0b7284fcc9791a243288..5429c2c5649e6839de8718fe7309285c42293edc 100644 --- a/cmd/root.go +++ b/cmd/root.go @@ -95,11 +95,9 @@ func initConfig() { viper.AddConfigPath(cfgDir) // adding ./cfg as first search path } - viper.SetEnvPrefix("CISK8S") + viper.SetEnvPrefix("KUBE_BENCH") viper.AutomaticEnv() // read in environment variables that match - // Set defaults - // If a config file is found, read it in. if err := viper.ReadInConfig(); err != nil { colorPrint(check.FAIL, fmt.Sprintf("Failed to read config file: %v\n", err))