diff --git a/modules/agent/pkg/controllers/bundledeployment/controller.go b/modules/agent/pkg/controllers/bundledeployment/controller.go index 9d37960d70..8010501afa 100644 --- a/modules/agent/pkg/controllers/bundledeployment/controller.go +++ b/modules/agent/pkg/controllers/bundledeployment/controller.go @@ -96,6 +96,11 @@ func (h *handler) Cleanup(key string, bd *fleet.BundleDeployment) (*fleet.Bundle } func (h *handler) DeployBundle(bd *fleet.BundleDeployment, status fleet.BundleDeploymentStatus) (fleet.BundleDeploymentStatus, error) { + if bd.Spec.Paused { + // nothing to do + return status, nil + } + if err := h.checkDependency(bd); err != nil { return status, err }