Skip to content

Commit

Permalink
operator: Fix operator flags
Browse files Browse the repository at this point in the history
The operator specific flags were not populated

Fixes: 588f835 ("operator: split operator-only options into separate package")
Signed-off-by: Thomas Graf <thomas@cilium.io>
  • Loading branch information
tgraf committed Apr 30, 2020
1 parent 462da1d commit adb78fb
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions operator/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ var (
func initEnv() {
// Prepopulate option.Config with options from CLI.
option.Config.Populate()
operatorOption.Config.Populate()

// add hooks after setting up metrics in the option.Confog
logging.DefaultLogger.Hooks.Add(metrics.NewLoggingHook(components.CiliumOperatortName))
Expand Down

0 comments on commit adb78fb

Please sign in to comment.