Skip to content

Commit

Permalink
Merge pull request #426 from redhatrises/env_args
Browse files Browse the repository at this point in the history
feat: get args from env for OLM config
  • Loading branch information
redhatrises authored Oct 5, 2023
2 parents 4ba5001 + 2236302 commit 265b122
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions cmd/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -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,
}
Expand Down

0 comments on commit 265b122

Please sign in to comment.