From fdea99c8c147c61cc9044cbf6f2902ffa7e2d412 Mon Sep 17 00:00:00 2001 From: zongz Date: Thu, 28 Nov 2024 10:43:32 +0800 Subject: [PATCH] fix: fix flag redefine panic Signed-off-by: zongz --- cmd/main.go | 3 +-- config/crd/kustomization.yaml | 3 +++ 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/cmd/main.go b/cmd/main.go index 3c09e31..c1d1193 100644 --- a/cmd/main.go +++ b/cmd/main.go @@ -96,7 +96,6 @@ func main() { rateLimiterOptions.BindFlags(flag.CommandLine) kubeConfigOpts.BindFlags(flag.CommandLine) watchOptions.BindFlags(flag.CommandLine) - logOptions.BindFlags(flag.CommandLine) flag.Parse() ctrl.SetLogger(logger.NewLogger(logOptions)) @@ -147,7 +146,7 @@ func main() { // +kubebuilder:scaffold:builder setupLog.Info("starting manager") - if err := mgr.Start(ctrl.SetupSignalHandler()); err != nil { + if err := mgr.Start(ctx); err != nil { setupLog.Error(err, "problem running manager") os.Exit(1) } diff --git a/config/crd/kustomization.yaml b/config/crd/kustomization.yaml index 2ba0124..50c92aa 100644 --- a/config/crd/kustomization.yaml +++ b/config/crd/kustomization.yaml @@ -3,6 +3,9 @@ # It should be run by config/default resources: - bases/krm.kcl.dev.fluxcd_kclruns.yaml +- bases/gitrepositories.yaml +- bases/ocirepositories.yaml +- bases/buckets.yaml #+kubebuilder:scaffold:crdkustomizeresource patches: