Skip to content

Commit

Permalink
fix: report correct condition when resources are successfully applied (
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelawyu authored Aug 24, 2023
1 parent c20f4f4 commit 50bec79
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/controllers/clusterresourceplacement/controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -930,7 +930,7 @@ func (r *Reconciler) setResourcePlacementStatusAndResourceConditions(ctx context
}
crp.Status.PlacementStatuses = placementStatuses
crp.SetConditions(buildClusterResourcePlacementSyncCondition(crp, syncPendingCount, syncSucceededCount))
crp.SetConditions(buildClusterResourcePlacementApplyCondition(crp, syncPendingCount > 0, appliedPendingCount, appliedSucceededCount, appliedFailedCount))
crp.SetConditions(buildClusterResourcePlacementApplyCondition(crp, syncPendingCount == 0, appliedPendingCount, appliedSucceededCount, appliedFailedCount))
return nil
}

Expand Down

0 comments on commit 50bec79

Please sign in to comment.