Skip to content

Commit d72b240

Browse files
committed
Switch to reflect.DeepEquals
1 parent 2b907a6 commit d72b240

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

components/ws-manager-mk2/controllers/subscriber_controller.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ package controllers
77
import (
88
"context"
99
"os"
10+
"reflect"
1011

11-
"k8s.io/apimachinery/pkg/api/equality"
1212
"k8s.io/apimachinery/pkg/api/errors"
1313
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
1414
ctrl "sigs.k8s.io/controller-runtime"
@@ -92,7 +92,7 @@ func (r *SubscriberReconciler) SetupWithManager(ctx context.Context, mgr ctrl.Ma
9292
return true
9393
}
9494

95-
return !equality.Semantic.DeepDerivative(old.Status, new.Status)
95+
return !reflect.DeepEqual(old.Status, new.Status)
9696
},
9797
}
9898

0 commit comments

Comments
 (0)