Skip to content

Commit

Permalink
test using set k8s defaults
Browse files Browse the repository at this point in the history
Signed-off-by: Alexy Mantha <alexy@mantha.dev>
  • Loading branch information
alexymantha committed Jun 12, 2024
1 parent e6ce612 commit 865cd84
Showing 1 changed file with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -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")
Expand Down

0 comments on commit 865cd84

Please sign in to comment.