Skip to content

Commit 59e5bd3

Browse files
agaudreaultzachaller
authored andcommitted
fix: replicaSet not scaled down due to incorrect annotations (#3762) (#3784)
dco Signed-off-by: Alexandre Gaudreault <alexandre_gaudreault@intuit.com>
1 parent 131b572 commit 59e5bd3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

rollout/controller.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -987,7 +987,7 @@ func (c *rolloutContext) updateReplicaSetFallbackToPatch(ctx context.Context, rs
987987
}
988988

989989
if _, found := rs.Annotations[v1alpha1.DefaultReplicaSetScaleDownDeadlineAnnotationKey]; found {
990-
patchRS.Annotations[v1alpha1.DefaultReplicaSetScaleDownDeadlineAnnotationKey] = rs.Labels[v1alpha1.DefaultReplicaSetScaleDownDeadlineAnnotationKey]
990+
patchRS.Annotations[v1alpha1.DefaultReplicaSetScaleDownDeadlineAnnotationKey] = rs.Annotations[v1alpha1.DefaultReplicaSetScaleDownDeadlineAnnotationKey]
991991
}
992992

993993
if _, found := rs.Spec.Selector.MatchLabels[v1alpha1.DefaultRolloutUniqueLabelKey]; found {

0 commit comments

Comments
 (0)