Skip to content

Commit

Permalink
feat: enable debug flag by default
Browse files Browse the repository at this point in the history
  • Loading branch information
lucasepe committed May 10, 2024
1 parent 9937001 commit 3f433c5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions cmd/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -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').
Expand Down
2 changes: 1 addition & 1 deletion scripts/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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"

0 comments on commit 3f433c5

Please sign in to comment.