Skip to content

Commit

Permalink
Merge pull request #239 from mrlihanbo/bugfix/status-aggregator
Browse files Browse the repository at this point in the history
bugfix: skip status aggregation when source object is not found
  • Loading branch information
mrlihanbo authored Sep 25, 2023
2 parents f6617c8 + d22c16a commit 6187ed8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/controllers/statusaggregator/controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -305,7 +305,7 @@ func (a *StatusAggregator) reconcile(ctx context.Context, key reconcileKey) (sta
}()

sourceObject, err := a.getObjectFromStore(key, "")
if err != nil {
if err != nil && !apierrors.IsNotFound(err) {
logger.Error(err, "Failed to get source object from cache")
return worker.StatusError
}
Expand Down

0 comments on commit 6187ed8

Please sign in to comment.