From 263323ae6d7a4cfeacc793e5bdc2fbe38744902a Mon Sep 17 00:00:00 2001 From: Florian Bacher Date: Fri, 30 Jun 2023 09:42:03 +0200 Subject: [PATCH 1/2] fix(operator): parse flags so they can be configured Signed-off-by: Florian Bacher --- operator/main.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/operator/main.go b/operator/main.go index 3c1b5f2378..11efcea526 100644 --- a/operator/main.go +++ b/operator/main.go @@ -131,6 +131,8 @@ func main() { Development: true, } opts.BindFlags(flag.CommandLine) + // parse the flags so we ensure they can be set to anything else but the default + flag.Parse() ctrl.SetLogger(zap.New(zap.UseFlagOptions(&opts))) From 79762ae4e939ed31b0e6a23d26c844bd47b9c2c5 Mon Sep 17 00:00:00 2001 From: Florian Bacher Date: Fri, 30 Jun 2023 11:17:57 +0200 Subject: [PATCH 2/2] fix(operator): parse flags so they can be configured Signed-off-by: Florian Bacher --- operator/config/manager/manager.yaml | 6 ------ operator/main.go | 2 +- 2 files changed, 1 insertion(+), 7 deletions(-) diff --git a/operator/config/manager/manager.yaml b/operator/config/manager/manager.yaml index 0dfd57d2e6..3492fef444 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 11efcea526..8dfffd4178 100644 --- a/operator/main.go +++ b/operator/main.go @@ -131,7 +131,7 @@ func main() { Development: true, } opts.BindFlags(flag.CommandLine) - // parse the flags so we ensure they can be set to anything else but the default + // 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)))