Skip to content

Commit

Permalink
agent: do not rate limit triggering of BundleDeployment handlers when…
Browse files Browse the repository at this point in the history
… deployed resources change

Signed-off-by: Silvio Moioli <[email protected]>
  • Loading branch information
moio committed May 16, 2023
1 parent c19a34b commit dfc2aed
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,7 @@ func (h *handler) Trigger(key string, bd *fleet.BundleDeployment) (*fleet.Bundle
logrus.Debugf("Adding OnChange for bundledeployment's '%s' resource list", key)
return bd, h.trigger.OnChange(key, resources.DefaultNamespace, func() {
// enqueue bundledeployment if any resource changes
h.bdController.Enqueue(bd.Namespace, bd.Name)
h.bdController.EnqueueAfter(bd.Namespace, bd.Name, 0)
}, resources.Objects...)
}

Expand Down

0 comments on commit dfc2aed

Please sign in to comment.