From 22363021a30105133ac850dec2a2be6fcca9b754 Mon Sep 17 00:00:00 2001 From: Gabe Alford Date: Thu, 5 Oct 2023 11:41:08 -0600 Subject: [PATCH] feat: get args from env for OLM config - Fixes #411 --- cmd/main.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/cmd/main.go b/cmd/main.go index 4bcabd04..b392935f 100644 --- a/cmd/main.go +++ b/cmd/main.go @@ -77,6 +77,10 @@ func main() { "Enabling this will ensure there is only one active controller manager.") flag.BoolVar(&ver, "version", false, "Print version") + if env := os.Getenv("ARGS"); env != "" { + os.Args = append(os.Args, strings.Split(env, " ")...) + } + opts := zap.Options{ Development: true, }