Skip to content

Commit

Permalink
fix: replicaSet not scaled down due to incorrect annotations (#3762) (#…
Browse files Browse the repository at this point in the history
…3784)

dco

Signed-off-by: Alexandre Gaudreault <[email protected]>
  • Loading branch information
agaudreault authored and zachaller committed Aug 13, 2024
1 parent 131b572 commit 59e5bd3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rollout/controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -987,7 +987,7 @@ func (c *rolloutContext) updateReplicaSetFallbackToPatch(ctx context.Context, rs
}

if _, found := rs.Annotations[v1alpha1.DefaultReplicaSetScaleDownDeadlineAnnotationKey]; found {
patchRS.Annotations[v1alpha1.DefaultReplicaSetScaleDownDeadlineAnnotationKey] = rs.Labels[v1alpha1.DefaultReplicaSetScaleDownDeadlineAnnotationKey]
patchRS.Annotations[v1alpha1.DefaultReplicaSetScaleDownDeadlineAnnotationKey] = rs.Annotations[v1alpha1.DefaultReplicaSetScaleDownDeadlineAnnotationKey]
}

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

0 comments on commit 59e5bd3

Please sign in to comment.