Skip to content

Commit

Permalink
fix: fix flag redefine panic
Browse files Browse the repository at this point in the history
Signed-off-by: zongz <[email protected]>
  • Loading branch information
zong-zhe committed Nov 28, 2024
1 parent 162b30d commit fdea99c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 1 addition & 2 deletions cmd/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down Expand Up @@ -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)
}
Expand Down
3 changes: 3 additions & 0 deletions config/crd/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit fdea99c

Please sign in to comment.