diff --git a/operator/config/manager/manager.yaml b/operator/config/manager/manager.yaml index 6ca2f68ead..39527dd888 100644 --- a/operator/config/manager/manager.yaml +++ b/operator/config/manager/manager.yaml @@ -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: diff --git a/operator/main.go b/operator/main.go index c1d1106ff0..2d7f965b0e 100644 --- a/operator/main.go +++ b/operator/main.go @@ -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)))