diff --git a/cmd/argocd-applicationset-controller/commands/applicationset_controller.go b/cmd/argocd-applicationset-controller/commands/applicationset_controller.go index 3780dd54be266..7abc5657ffd62 100644 --- a/cmd/argocd-applicationset-controller/commands/applicationset_controller.go +++ b/cmd/argocd-applicationset-controller/commands/applicationset_controller.go @@ -115,8 +115,11 @@ func NewCommand() *cobra.Command { } cfg := ctrl.GetConfigOrDie() - cfg.QPS = 100 - cfg.Burst = 150 + err = appv1alpha1.SetK8SConfigDefaults(cfg) + if err != nil { + log.Error(err, "Unable to apply K8s REST config defaults") + os.Exit(1) + } mgr, err := ctrl.NewManager(cfg, ctrl.Options{ Scheme: scheme, @@ -128,8 +131,6 @@ func NewCommand() *cobra.Command { LeaderElectionID: "58ac56fa.applicationsets.argoproj.io", DryRunClient: dryRun, }) - mgr.AddMetricsExtraHandler("/debug/pprof/", http.HandlerFunc(pprof.Index)) - mgr.AddMetricsExtraHandler("/debug/pprof/profile", http.HandlerFunc(pprof.Profile)) if err != nil { log.Error(err, "unable to start manager")