Skip to content

Commit 865f144

Browse files
authored
fix: set resource version for subscription in sequence reconciler (#8180)
Signed-off-by: Cali0707 <[email protected]>
1 parent 413a29d commit 865f144

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

pkg/reconciler/sequence/sequence.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -219,6 +219,7 @@ func (r *Reconciler) reconcileSubscription(ctx context.Context, step int, p *v1.
219219
}
220220
return newSub, nil
221221
} else if equal, err := kmp.SafeEqual(sub.Spec, expected.Spec); !equal || err != nil {
222+
expected.ResourceVersion = sub.ResourceVersion
222223
// only the mutable fields were changed, so we can update the subscription
223224
updatedSub, err := r.eventingClientSet.MessagingV1().Subscriptions(sub.Namespace).Update(ctx, expected, metav1.UpdateOptions{})
224225
if err != nil {

0 commit comments

Comments
 (0)