Skip to content

Commit 98d0429

Browse files
authored
test: add PickFixed, PickN e2e tests for staged update run controller (#289)
1 parent e57c6a5 commit 98d0429

File tree

3 files changed

+420
-45
lines changed

3 files changed

+420
-45
lines changed

pkg/controllers/placement/controller.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1214,7 +1214,7 @@ func (r *Reconciler) determineRolloutStateForPlacementWithExternalRolloutStrateg
12141214
})
12151215
// As placement status will refresh even if the spec has not changed, we reset any unused conditions to avoid confusion.
12161216
for i := condition.RolloutStartedCondition + 1; i < condition.TotalCondition; i++ {
1217-
meta.RemoveStatusCondition(&placementStatus.Conditions, string(i.ClusterResourcePlacementConditionType()))
1217+
meta.RemoveStatusCondition(&placementStatus.Conditions, getPlacementConditionType(placementObj, i))
12181218
}
12191219
return true, nil
12201220
}

0 commit comments

Comments
 (0)