From 795bdf4ea4b2b537ad8ccf0b1c88d3c1f047028f Mon Sep 17 00:00:00 2001 From: Kasper Juul Hermansen Date: Tue, 2 Jul 2024 15:03:37 +0200 Subject: [PATCH] fix: forgot to move the parse flags over from kubebuilder v3 -> v4 (#300) Signed-off-by: Kasper J. Hermansen --- cmd/main.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/cmd/main.go b/cmd/main.go index d79422e..ae31b33 100644 --- a/cmd/main.go +++ b/cmd/main.go @@ -71,6 +71,11 @@ func main() { config.Log(setupLog) + if err := flagSet.Parse(os.Args[1:]); err != nil { + setupLog.Error(err, "parse flags") + os.Exit(1) + } + // if the enable-http2 flag is false (the default), http/2 should be disabled // due to its vulnerabilities. More specifically, disabling http/2 will // prevent from being vulnerable to the HTTP/2 Stream Cancellation and