Skip to content

Commit

Permalink
code change
Browse files Browse the repository at this point in the history
  • Loading branch information
Ryan Zhang committed Dec 16, 2024
1 parent dcb8c94 commit c1a8949
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion pkg/controllers/clusterresourceplacement/placement_status.go
Original file line number Diff line number Diff line change
Expand Up @@ -260,7 +260,10 @@ func (r *Reconciler) setResourcePlacementStatusPerCluster(crp *fleetv1beta1.Clus
}
case condition.AppliedCondition, condition.AvailableCondition:
if bindingCond.Status == metav1.ConditionFalse {
status.FailedPlacements = binding.Status.FailedPlacements
if crp.Spec.Strategy.ApplyStrategy.Type != fleetv1beta1.ApplyStrategyTypeReportDiff {
// Nothing is applied If the apply strategy is reportDiff.
status.FailedPlacements = binding.Status.FailedPlacements
}
status.DiffedPlacements = binding.Status.DiffedPlacements
status.DriftedPlacements = binding.Status.DriftedPlacements
}
Expand Down

0 comments on commit c1a8949

Please sign in to comment.