Skip to content

Commit

Permalink
fix(operator): parse flags so they can be configured (#1649)
Browse files Browse the repository at this point in the history
Signed-off-by: Florian Bacher <[email protected]>
  • Loading branch information
bacherfl authored Jul 3, 2023
1 parent 791e211 commit 4243085
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
6 changes: 0 additions & 6 deletions operator/config/manager/manager.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,13 +39,7 @@ spec:
- command:
- /manager
args:
- webhook-server
- --leader-elect
# Secure port for the metrics adapter
- --adapter-port=6443
- --adapter-certs-dir=/tmp/metrics-adapter/serving-certs
# Log level for the metrics adapter
- --v=10
image: controller:latest
name: manager
ports:
Expand Down
2 changes: 2 additions & 0 deletions operator/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,8 @@ func main() {
Development: true,
}
opts.BindFlags(flag.CommandLine)
// parse the flags, so we ensure they can be set to something else than their default values
flag.Parse()

ctrl.SetLogger(zap.New(zap.UseFlagOptions(&opts)))

Expand Down

0 comments on commit 4243085

Please sign in to comment.