Skip to content

Commit

Permalink
feat: get args from env for OLM config
Browse files Browse the repository at this point in the history
- Fixes #411
  • Loading branch information
redhatrises committed Oct 5, 2023
1 parent b970145 commit 9957ae5
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, env)
}

opts := zap.Options{
Development: true,
}
Expand Down

0 comments on commit 9957ae5

Please sign in to comment.