Skip to content

Commit

Permalink
agent: avoid deploying paused bundles
Browse files Browse the repository at this point in the history
Signed-off-by: Silvio Moioli <[email protected]>
  • Loading branch information
moio committed May 16, 2023
1 parent a8b4999 commit a717cc2
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions modules/agent/pkg/controllers/bundledeployment/controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit a717cc2

Please sign in to comment.