Skip to content

Commit f048559

Browse files
Leo6LeopierDipi
andauthored
Apply suggestions from code review
Co-authored-by: Pierangelo Di Pilato <[email protected]>
1 parent 22520ed commit f048559

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pkg/reconciler/sequence/sequence.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -363,7 +363,7 @@ func (r *Reconciler) reconcileEventPolicies(ctx context.Context, s *v1.Sequence,
363363
existingPolicy, exists := existingPolicyMap[expectedPolicy.Name]
364364

365365
if exists {
366-
if !equality.Semantic.DeepEqual(existingPolicy.Spec, expectedPolicy.Spec) {
366+
if !equality.Semantic.DeepDerivative(expectedPolicy.Spec, existingPolicy.Spec) {
367367
policiesToUpdate = append(policiesToUpdate, expectedPolicy)
368368
}
369369
delete(existingPolicyMap, expectedPolicy.Name)
@@ -381,7 +381,7 @@ func (r *Reconciler) reconcileEventPolicies(ctx context.Context, s *v1.Sequence,
381381
// The sequence has the event policy, so we are creating the event policy for the input channel
382382
existingInputPolicy, exists := existingPolicyMap[inputPolicy.Name]
383383
if exists {
384-
if !equality.Semantic.DeepEqual(existingInputPolicy.Spec, inputPolicy.Spec) {
384+
if !equality.Semantic.DeepDerivative(inputPolicy.Spec, existingInputPolicy.Spec) {
385385
policiesToUpdate = append(policiesToUpdate, inputPolicy)
386386
}
387387
delete(existingPolicyMap, inputPolicy.Name)

0 commit comments

Comments
 (0)