Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions config/default/overlays/dev/manager_image_patch.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,3 +17,4 @@ spec:
- image: ((operator_docker_image))
name: operator
imagePullPolicy: Always
args: ["--zap-devel"]
1 change: 1 addition & 0 deletions config/default/overlays/kind/manager_image_patch.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,3 +17,4 @@ spec:
- image: ((operator_docker_image))
name: operator
imagePullPolicy: IfNotPresent
args: ["--zap-devel"]
6 changes: 5 additions & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,13 @@ func init() {
func main() {
var metricsAddr string
flag.StringVar(&metricsAddr, "metrics-addr", ":12345", "The address the metric endpoint binds to.")

opts := zap.Options{}
opts.BindFlags(flag.CommandLine)

flag.Parse()

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

operatorNamespace := os.Getenv("OPERATOR_NAMESPACE")
if operatorNamespace == "" {
Expand Down