func parseInputValues() {
	if len(blacklistEnv) != 0 {
		blacklist = strings.Split(blacklistEnv, ",")
		log.Infoln("Parsed BLACKLIST:", blacklist)
	}
	if len(whitelistEnv) != 0 {
		whitelist = strings.Split(whitelistEnv, ",")
		log.Infoln("Parsed WHITELIST:", whitelist)
	}
	if len(thresholdEnv) != 0 {
		var err error
		threshold, err = strconv.ParseFloat(thresholdEnv, 64)
		if err != nil {
			log.Fatalln("error occurred attempting to parse THRESHOLD:", err)
		}
		log.Infoln("Parsed THRESHOLD:", threshold)
	}
	if threshold > 0.99 {
		log.Infoln("Given THRESHOLD is greater than 0.99, setting to default of", defaultThreshold)
		threshold = defaultThreshold
	}
	if threshold <= 0 {
		log.Infoln("Threshold is less than or equal to 0, setting to default of", defaultThreshold)
		threshold = defaultThreshold
	}
	log.Infoln("Usage threshold set to:", threshold)
	checkTimeLimit = defaultCheckTimeLimit
	timeDeadline, err := kh.GetDeadline()
	if err != nil {
		log.Infoln("There was an issue getting the check deadline:", err.Error())
	}
	checkTimeLimit = timeDeadline.Sub(time.Now().Add(time.Second * 5))
	log.Infoln("Check time limit set to:", checkTimeLimit)
}
parseInputValues parses all incoming environment variables for the program into globals and fatals on errors.
package main
import (
	"os"
	"strconv"
	"strings"
	"time"
	kh "github.com/kuberhealthy/kuberhealthy/v2/pkg/checks/external/checkclient"
	log "github.com/sirupsen/logrus"
)
func parseDebugSettings() {
	if len(debugEnv) != 0 {
		var err error
		debug, err = strconv.ParseBool(debugEnv)
		if err != nil {
			log.Fatalln("failed to parse DEBUG environment variable:", err)
		}
	}
	if debug {
		log.Infoln("Debug logging enabled.")
		log.SetLevel(log.DebugLevel)
	}
	log.Debugln(os.Args)
}