From 3f433c5392072c4c6570ad59a9742d030e49476e Mon Sep 17 00:00:00 2001 From: Luca Sepe Date: Fri, 10 May 2024 14:23:30 +0200 Subject: [PATCH] feat: enable debug flag by default --- cmd/main.go | 1 + scripts/run.sh | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/cmd/main.go b/cmd/main.go index 065169b..b7291be 100644 --- a/cmd/main.go +++ b/cmd/main.go @@ -32,6 +32,7 @@ func main() { app = kingpin.New(filepath.Base(os.Args[0]), fmt.Sprintf("Krateo %s Provider.", providerName)). DefaultEnvars() debug = app.Flag("debug", "Run with debug logging.").Short('d'). + Default("true"). OverrideDefaultFromEnvar(fmt.Sprintf("%s_DEBUG", envVarPrefix)). Bool() namespace = app.Flag("namespace", "Watch resources only in this namespace.").Short('n'). diff --git a/scripts/run.sh b/scripts/run.sh index 3bc7837..3280250 100755 --- a/scripts/run.sh +++ b/scripts/run.sh @@ -5,4 +5,4 @@ kubectl apply -f testdata/ns.yaml kubectl apply -f testdata/vcluster.yaml -go run cmd/main.go --debug --poll "2m" -n "krateo-system" +go run cmd/main.go --poll "2m" -n "krateo-system"