Skip to content

Commit

Permalink
fix: compare the number of errors to update Results (#167)
Browse files Browse the repository at this point in the history
Signed-off-by: Aris Boutselis <arisboutselis08@gmail.com>
Co-authored-by: Aris Boutselis <arisboutselis08@gmail.com>
  • Loading branch information
Aris Boutselis and arbreezy authored Jun 23, 2023
1 parent 714fd06 commit e805d2c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/resources/results.go
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ func CreateOrUpdateResult(ctx context.Context, c client.Client, res v1alpha1.Res
}
return CreatedResult, nil
}
if existing.Spec.Details == res.Spec.Details && reflect.DeepEqual(res.Labels, existing.Labels) {
if len(existing.Spec.Error) == len(res.Spec.Error) && reflect.DeepEqual(res.Labels, existing.Labels) {
existing.Status.LifeCycle = string(NoOpResult)
err := c.Status().Update(ctx, &existing)
return NoOpResult, err
Expand Down

0 comments on commit e805d2c

Please sign in to comment.